DBMS Lab program 1
DBMS Lab program 1
v
Schema Diagram:
v
Table Creation:
v
To view created tables:
Inserting values:
i
insert into BOOK_COPIES_dbms values ('b5','bh3',17);
Queries:
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 2017 to Jun2017.
3.Delete a book in BOOK table. Update the contents of other tables to reflect this
data manipulation operation.
x
4. Partition the BOOK table based on year of publication. Demonstrate its working
with a simplequery.
5. Create a view of all books and its number of copies that are currently available
in the Library.