Lab Manual
19AD581 - NoSQL Databases
Dr P Thendral
EXERCISE 3 :
Objective:
Design of Aggregate Data Model for NoSQL Database for Applications.
Note: This needs normal print outs for Record
1) Name your database
2) Identify all the Collections for the Database(atleast 6 Collections)
3) Give our aggregate Data Model for the Collections. Draw Diagram just like the one below.
4) List out all Field names for a sample document for Each Collection, just like the example below
In document format.
// in customers
{"
id":1,
"name":"Martin",
"billingAddress":[{"city":"Chicago"}]
}
// in orders
{"
id":99,
"customerId":1,
"orderItems":[
{
"productId":27,
"price": 32.45,
"productName": "NoSQL Distilled"
}
],
"shippingAddress":[{"city":"Chicago"}]
"orderPayment":[
{
"ccinfo":"1000-1000-1000-1000",
"txnId":"abelif879rft",
"billingAddress": {"city": "Chicago"}
}
],
}
5) Draw use case diagram for the users of the application just like the one below for library
management system
6) List our various Aggregate Queries you can fire upon your application that you are planning to
implement in your project do perform Data Analytics on the Database items(Just like questions of
Exercise 2) – (atleast 15 valuable queries involving – group, aggregation and join type queries)