MongoDB Practical Record 1
MongoDB Practical Record 1
EXP – 2 :
Roll Number
Name
Age
Gender
Mobile Number
Hobbies
QUERIES :
- Display all the students all the students who are boys
- Display the names of students starting with letter ‘S’
- Display the students whose name ends with ‘S’
- Display the students who have sports as their hobby
- Display the students who have more than two hobbies
- Display the details with roll number, name, and mobile number
- Display whose age is less exactly 20.
EXP – 3 :
Create collection marks and store your Sem 4 data with columns as roll number, gender,
subject/course code : Marks , Total and Percentage
Create student marks with roll number, name, branch and three subject marks
EXP – 4 :
o Sort
o Count
o Projection
o Skip
o Limit
QUERIES :
EXP – 5 :
QUERY :
EXP – 6 :
Implementing arrays.
QUERY :
o Create collection food with columns as fruits and vegetables, custormer ID. And total
amount.
To find : db.sem4.find()
EXP – 4 :
TASK :
The table contains following information : roll number, name, m1, m2 and m3