0% found this document useful (0 votes)
29 views2 pages

07 Task Performance 1

Uploaded by

santoscharles27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views2 pages

07 Task Performance 1

Uploaded by

santoscharles27
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

IT2003

Task Performance
Basic Operations in MongoDB
Objectives:

At the end of the exercise, the students should be able to:

▪ Distinguish the features of a document-oriented database.


▪ Create collections, documents, fields, and embedded documents using queries.

Software Requirements:

▪ MongoDB Community Server 4.4 or higher


▪ Mongo Shell or Internet Browser

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.

07 Task Performance 1 *Property of STI


Page 1 of 2
IT2003

3. Using the deleteOne command, remove the document which contains the song “Bawat Kaluluwa”.

4. Find the document that has a value of "Bulong".

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

07 Task Performance 1 *Property of STI


Page 2 of 2

You might also like