0% found this document useful (0 votes)
12 views4 pages

Practical 2

Uploaded by

Urmil Pawaskar
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)
12 views4 pages

Practical 2

Uploaded by

Urmil Pawaskar
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/ 4

KISHINCHAND CHELLARAM COLLEGE, Mumbai – 20.

FY / SY / TY B.Sc. (Computer Science) Year


Big DATA analytics

Urmil Pawaskar
Roll No. 58
Date: -
Practical 2

CRUD Operations in MongoDB


1) Display all databases in MongoDB

2) Create database with the name my_db

3) To check whether your current database is selected is my_db or not

4) To check the name of your database my_db in database list

5) Create collection “Movie” with one document the name movie having fields movie_name and year

6) Add two more documents


7) Show your DB in the list

8) Create collection “Student” with many documents with roll no., name, marks

9) Show records in collection Student


KISHINCHAND CHELLARAM COLLEGE, Mumbai – 20.
FY / SY / TY B.Sc. (Computer Science) Year
10) Show single record

11) Find a record in Collection

12) Display student name and marks of students except the field “_id”

13) Count all docs in students

14) Update the first doc of Student having name Anakar and set marks as 75
15) Increase marks by 5

16) Delete the student first document having name Anakar in the collection

17) Delete Many

You might also like