Filter Data from Couchbase Using N1QL
By Kishan Iyer
Course info



Course info



Description
There are a variety of ways to filter queries in Couchbase. In this course, Filter Data from Couchbase Using N1QL, you will get some hands on experience in writing queries to retrieve documents from a Couchbase database using filters you have defined. These queries will be written in the N1QL query language which has a SQL-like syntax to work with JSON data.
First, you will explore how documents can be searched using the Couchbase web UI and how this interface allows you to define filters based a document key and also on the values of its attributes.
Next, you will cover some of the basics of querying in the N1QL query language - such as the SELECT, FROM and WHERE clauses of a N1QL query - and will also take a brief look at adding and updating documents using INSERT and UPDATE queries. Then, you will move on to the filtering of documents based on the values of their attributes using a variety of comparison operators.
Finally, you will delve into filtering documents based on the contents of nested structures such as arrays and objects. This includes the use of collection operators, invoking built-in array functions and also generating slices of arrays.
By the end of this course, you will have the skills required to run a variety of filter queries on the data you have stored in a Couchbase database.
Section Introduction Transcripts
Course Overview
[Autogenerated] Hi on. Welcome to this course IFilter data from Couchbase using nickel. My name is Kishan Ire and I will be your instructor for the course a little about myself First, I have a masters degree in computer science from Columbia University and have previously worked in companies such as Deutsche Bank on WebMD in New York. I presently work for Looney Con, a studio for high quality video content. In this course, you will get some hands on experience in writing queries to retreat document from a Couchbase database using filters which you have defined. These queries will be written in the n one QL or nickel query language, which has a SQL like syntax in order to work with JSON data. First, you will explore how documents can be searched using the Couchbase web UI and how this interface allows you to define filters, Azure going to document key and also on the values off its attributes. Next, you will cover some of the basics off squaring in the nickel query language such as the select from and where clauses and will also take a brief look at adding and updating documents using insert and update queries. You will then move on to the filtering off documents based on the values off the attributes using a variety of comparison operators. Finally, you will delve into filtering documents based on the contents off nested structures such as a race on objects. This includes the use off collection operators in working building array functions and also generating slices off a raise. By the end of this coast, you will have the skills required to run a variety of filter queries on the data you have stored in a Couchbase database.