Mongo DB
Mongo DB
MongoDB
Q1. Creating and Dropping Database & Collection
Task 1 - :
Task 2 - :
Task 3 - :
Task 4 - :
Task 5 - :
Task 6 - :
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