Format For Ism Lab File
Format For Ism Lab File
Format For Ism Lab File
1) INTRODUCTION TO SQL
Definition of SQL (In detail)
Models of SQL
PART-A
5) IMPLEMENTATION OF DDL COMMANDS OF SQL WITH SUITABLE EXAMPLES (definition – 1 line ,
write query and command and then add the screenshot of created table)
i. Create table
ii. Alter table
iii. Drop table
9) CONSIDER THE FOLLOWING SCHEMA FOR A LIBRARY DATABASE: (create all tables of each
and run the query with the command and result adding the screenshots of the tables created and also
add table description command)
BOOK (Book_id, Title, Publisher_Name, Pub_Year)
BOOK_AUTHORS (Book_id, Author_Name)
PUBLISHER (Name, Address, Phone)
BOOK_COPIES (Book_id, Branch_id, No-of_Copies)
BOOK_LENDING (Book_id, Branch_id, Card_No, Date_Out, Due_Date)
LIBRARY_BRANCH (Branch_id, Branch_Name, Address)
Write SQL queries to
1. Retrieve details of all books in the library – id, title, name of publisher, authors, number of copies in
each branch, etc.
2. Get the particulars of borrowers who have borrowed more than 3 books, but from Jan 2023 to June
2023
3. Delete a book in BOOK table. Update the contents of other tables to reflect this data manipulation
operation.
4. Partition the BOOK table based on year of publication. Demonstrate its working with a simple query.
5. Create a view of all books and its number of copies that are currently available in the library.
10) CONSIDER THE FOLLOWING SCHEMA FOR ORDER DATABASE:(create all tables of each and run
the query with the command and result adding the screenshots of the tables created and also add
table description command)
SALESMAN(Salesman_id, Name, City, Commission)
CUSTOMER(Customer_id, Cust_Name, City, Grade, Salesman_id)
ORDERS(Ord_No, Purchase_Amt, Ord_Date, Customer_id,
Salesman_id)
11) CONSIDER THE FOLLOWING SCHEMA ForR MOVIE DATABASE: (create all tables of each and
run the query with the command and result adding the screenshots of the tables created and also add
table description command)
ACTOR(Act_id, Act_Name, Act_Gender)
DIRECTOR(Dir_id, Dir_Name, Dir_Phone)
MOVIES(Mov_id, Mov_Title, Mov_Year, Mov_Lang, Dir_id)
MOVIE_CAST(Act_id, Mov_id, Role)
RATING(Mov_id, Rev_Stars)
PART- B