Professional Documents
Culture Documents
School SCOPE
Course Code cs3009 Course Title NoSQL Databases
Semester Date of exam
Faculty Name
Slot Dr. Karthika Natarajan & 70279
& ID
Duration 110 mins Total Marks 50
Q1. Mr. Sanjeev wants to development a database using MongoDB for his plant nursery which
has details such as Plant_id, Plant_name, Supplier_id, Payment-method, Number_of_
plants_ordered and Date & Year of Purchase. (15)
For the following occurrences, write an answer.
1. Very first he planned to insert every plant details individually.
2. Later he decided to add all the plant details at a time upon the database.
3. While adding the details, he found out that there is an error, so he has decided to update
the Payment_method from COD to Card payment to all the plants purchased.
4. Now he decided to update the database with Customer_id.
5. He wants to delete a plant detail which matches with Plant_name “ MANGO”.
Q2. Mr. Baskar intends to develop an app using MongoDB which deals with weather report. The
details are City, District, State, Temperature, Wind_speed, pressure, humidity, Direction_of
Wind, Rainfall_range, year, and month (10)
1. He wants to find the cities which is hitting max temperature among all.
2. He wishes to note down the number of states which exceeds temperature level is 25.
3. He wants to know whether any state has low level rainfall that is between 250
millimeters.
4. He decides to list down all states which has above 500 millimeters rainfall.
5. He wants to calculate the average rainfall of a year 2021.
Q3. Write commands using REDIS datastore (15)
QP Mapping