0% found this document useful (0 votes)
11 views6 pages

IMS-CSET-201-Lab Assignment 2.4

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
11 views6 pages

IMS-CSET-201-Lab Assignment 2.4

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 6

Course-B.

Tech Type- Core


Course Code- CSET201 Course Name- Information Management System

Year- 2024 Semester- Even


Date- 05/08/2024 Batch- 2023-2026

CO-Mapping
CO1 CO2 CO3
Q1 √ √
Q2 √ √
Q3 √ √
Q4 √ √
Q5 √ √
Q6 √ √
Q7 √ √
Q8 √ √
Q9 √ √
Q10 √ √
Q11 √ √
Q12 √ √
A- Type- Lab Assignment/Tutorial # No. (Week 1, Assignment No. 4)

Problem 1.1 The Indian Government wants to develop a Bennett Library Management System (LMS)
to store information of the members, books, status of books issue, book availability and suppliers’ details
Assumptions: -

1. Any library member should be able to search books by their title, author, subject category as well by the
publication date.

2. Each book will have a unique identification number and other details including a rack number which
will help to physically locate the book.

3. There should be a maximum limit (5) on how many books a member can check-out.

4. There should be a maximum limit (10) on how many days a member can keep a book.
School of Computer Science Engineering and Technology

Tables will be created are as follows:


Table #1: LMS_MEMBERS
Table #2: LMS_SUPPLIERS_DETAILS
Table #3: LMS_FINE_DETAILS
Table #4: LMS_BOOK_DETAILS
Table #5: LMS_BOOK_ISSUE
Hint: - Constraints: - MEMBER_ID should be unique
SUPPLIERS_ID should be unique.
BOOK_CODE should be Unique.
BOOK_ISSUE_NO should be Unique.

Objective
1. Students will be able to learn SQL
2. Students will be able to learn DDL Commands and data types
3. Students will be able to learn DML commands

LMS_BOOK_ISSUE: -
Book_Issue_No Member_ID Book_Code Date_Issue Date_Return Date_Returned Book_Issue_Status Fine_Range
101 CS001 BC201 02/02/22 27/02/22 27/02/22 Y01 Rs70
102 CS004 BC205 10/02/22 25/02/22 25/02/22 Y02 RS10
103 CS005 BC207 11/03/22 03/04/22 03/04/22 Y03 RS30
104 CS013 BC213 02/04/22 17/04/22 17/04/22 Y04 RS70
105 CS022 BC215 12/04/22 12/05/22 12/05/22 Y05 RS100

LMS_MEMBER: -
Member_ID Member_Name City Date_Register Date_Expire Membership_Status
CS_001 Ajay Delhi 02/01/21 31/12/21 EXP01
CS_002 Mukul Lucknow 02/01/22 31/12/22 NEXP01
CS_003 Rekha Patna 03/02/22 31/12/22 NEXP02
CS_004 Rashmi Ranchi 03/03/21 31/12/21 EXP02
CS_005 Rahul Gurugram 02/01/20 31/12/20 EXP03
School of Computer Science Engineering and Technology

LMS_BOOK_DETAILS: -
Book_Code Book_Title Category Author Publication Publish_Date Book_Edition Price Rack_Num Date_Arrival Supplier_ID
BC_001 Algorithms_1 ENGG_01 Vander Springer_1 16/03/21 12432 238 CS_11 09/06/21 X_01
Hussain_1
BC_003 DataStructures_2 ENGG_02 SKumar_2 CPS_1 22/05/21 13265 565 CS_14 13/08/21 X_02
BC_007 Operating ENGG_03 Tchau_3 WPS_1 14/06/21 14326 654 CS_16 26/09/21 X_03
Systems_3
BC_012 DBMS_4 ENGG_04 TChen_4 CPS_2 21/09/21 32162 709 CS_08 06/01/22 X_04
BC_018 C/C++_5 ENGG_05 AImam_5 WS_1 26/11/21 43865 690 CS_02 11/02/22 X_05

LMS_FINE_DETAILS: -
Fine_Range Fine_Amount
R_30 100
R_20 70
R_10 20
R_05 10
School of Computer Science Engineering and Technology

LMS_SUPPLIERS_DETAILS: -
Supplier_ID Supplier_Name Address Contact Email
X_01 Jaico_1 XYZ_1 70005437 Jaico@gmail.com
X_02 Westland_2 ABC_2 90000231 Westland@gmail.com
X_03 Penguin Random ASD_3 90000976 Randomhouse@gmail.com
House_3
X_04 Hachette India_4 GHJ_4 90000876 Hachette@gmail.com

1. Create a database and table for Bennett LMS.

2 Write a query to display the member id, member name, city and membership status whoare
allhaving lifetime membership. Hint: Lifetime membership status is “Permanent.
3 Write a query to display the book code, book title and author of the books whose author
namebegins with 'P'.
4 Write a query to display the total number of Java books available in library withalias
name‘NO_OF_BOOKS’.
5 Write a query to display the book code, book title of the books which are issued on thedate
“1stApril 2012″.
6 Write a query to display the member id, member name, date of registration and expirydate of
themembers whose membership expiry date is before APR 2013.
School of Computer Science Engineering and Technology

7 Write a query to display the member id, member name, date of registration,
membership status ofthe members who registered before “March 2012” and
membership status is “Temporary”.

8 Display all columns of the Book Code.


9 Display all book issue status.
10 Find all records in the supplier table with ID.
11 Find all the Membership_Status whose Membership_Status is either Expired or Non expired12> Name
as Supplier Manager in LMS Supplier Details.

12 Name as Supplier Manager in LMS Supplier Details.

You might also like