A practical guide with MongoDB

NoSQL refers to non-SQL or non-relational database design. It provides an organized way of storing data but not in tabular form (i.e. labelled rows and columns).

The common structures adapted by NoSQL databases to store data are key-value pairs, wide column, graph, or document. There are several NoSQL databases used in the data science ecosystem. In this article, we will be using one of the popular ones which is MongoDB.

MongoDB stores data as documents. A document in MongoDB consists of field-value pairs. Documents are organized in a structure called collection. To make an analogy, document can be considered as a row in a table and collection can be considered as an entire table. If you are new to NoSQL or MongoDB, here is an introductory article that will warm you up:

We will go over 10 examples to demonstrate how data can be retrieved from a MongoDB database.

We have a collection called “customer”. The documents in the customer collection contains customer name, age, gender, and the amount of the last purchase.

#programming #artificial-intelligence #data-science #database #examples to query a nosql database #query

8 Examples to Query a NoSQL Database
1.20 GEEK