You are on page 1of 2

School of Computer Science Engineering and Technology

Course- BTech Type- Core


Course Code- CSET201 Course Name- Information Management
System
Year- 2023 Semester- Odd
Date- 03/11/2023 Batch- 2022-2026

Exp No. Name CO1 CO2 CO3


11 MongoDB

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.

The aim of a university's library management system is to effectively manage and


arrange the sizable collection of books that are available to students, faculty, and staff.
The system aims to make it simple to access a variety of academic resources and to
encourage a quick and easy borrowing and returning procedure. Each book's details,
including its title, author, year of publication, ISBN, genre, and availability status,
are kept in the system's database.

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:

1. Create a database called Library Management System in MongoDB.

2. Write a command to create a library collection.

3. Write a command to insert three book documents into the library collection.

(e.g.- title, year, author, availability, isbn and genre)

4. Write a command to retrieve all books published in a specific year.

5. Write a command to retrieve all books written by a specific author.

6. Write a command to retrieve the book with a specific ISBN number.

7. Write a command to retrieve all books available in the library.

8. Write a command to update the availability of a book with a specific ISBN number
to false.

9. Write a command to add a new book to the library collection.

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.

You might also like