Professional Documents
Culture Documents
Lab - 11 Set 5
Lab - 11 Set 5
Objectives
1. Students will be able to learn the concept of NoSQL.
2. Students will be able to learn the basic operations performed in Mongo DB.
3. Student will be able to compare MySql and mongoDB.
Users of this database can conduct book searches using a variety of criteria, including
author, year of publication, and genre. The system also enables updates to the status
of a book's availability, ensuring accurate knowledge of a book's availability within
the library. The library management system can effectively handle the storing,
retrieval, and manipulation of book-related data with the aid of MongoDB, a flexible
and scalable NoSQL database, giving library users a better experience.
School of Computer Science Engineering and Technology
Questions:
3. Write a command to insert three book documents into the library collection.
8. Write a command to update the availability of a book with a specific ISBN number
to false.
10. Write a command to delete a book from the library collection based on its ISBN
number.
11. Write a command to retrieve the total count of books in the library collection.
12. Write a command to retrieve all books published between a specific range of years,
sorted by publication year in descending order.
13. Write a command to retrieve the count of books available in each genre.