07 Task Performance 1
07 Task Performance 1
Task Performance
Basic Operations in MongoDB
Objectives:
Software Requirements:
Procedure:
1. Using Mongo shell, create a database and insert the following documents.
{
"song" : "Babalik Ka Pa Ba",
"artist" : "CHNDTR",
"album" : "Habang Umuulan",
"released" : 2018,
}
{
"song" : "Bulong",
"artist" : "December Avenue",
"album" : "Langit Mong Bughaw",
"released" : 2019,
}
{
"song" : "Bawat Kaluluwa",
"artist" : "IV of Spades",
"album" : "CLAPCLAPCLAP!",
"released" : 2019,
}
{
"song" : "Kathang Isip",
"artist" : "Ben&Ben",
"album" : "Ben&Ben",
"released" : 2017,
}
2. Find the documents or songs that were released in the years 2017 and 2018.
Note:
a. You can use the pretty() function to display the documents in an organized list
(db.collection.find().pretty()).
b. _ids are automatically created by Mongo shell.
3. Using the deleteOne command, remove the document which contains the song “Bawat Kaluluwa”.
GRADING RUBRIC:
CRITERIA PERFORMANCE INDICATORS POINTS
Correctness The code produces the expected result. 30
Logic The code meets the specifications of the problem. 30
Efficiency The code is concise without sacrificing correctness and logic. 20
Syntax The code adheres to the rules of the database management system. 20
Total 100