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

Mongo DB

mongodb
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)
9 views2 pages

Mongo DB

mongodb
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

Assignment

MongoDB
Q1. Creating and Dropping Database & Collection
Task 1 - :

Create a new MongoDB database named "PWSKILLS".

Task 2 - :

Create a collection named "Employees" within the "PWSKILLS" database.

Task 3 - :

Insert several documents representing employees into the "Employees" collection.

Task 4 - :

Retrieve and display all documents from the "Employees" collection.

Task 5 - :

Drop the "Employees" collection.

Task 6 - :

Drop the "PWSKILLS" database.

Q2. Insert a new document representing a customer into the "Customers" collection.
Q3. Retrieve and display all documents from the "Customers" collection.
Q4. Update the address of a specific customer.
Q5. Query for customers who have made purchases over a certain amount.
Q6. Remove a customer from the "Customers" collection.
Q7. Create a new database named "SchoolDB".

Q8. Insert documents into the "Students" collection with fields like name, age, and grade.
Q9. Query for students older than a specific age or belonging to a particular grade.
Q10. Update the grade of a specific student in the "Students" collection.
Q11. Insert documents into the " eachers" collection representing teachers with fields like name, sub ect, and
T j

e perience.
x

Q12. Query for teachers speciali ing in a specific sub ect or with more than a certain amount of e perience.
z j x

Q13. Update the e perience of a specific teacher in the " eachers" collection.
x T

Full Stack Web Development

You might also like