DBMS LAB2
Database Schema for a Student Library
scenario
Student(Stud_no : integer, Stud_name:
string)
Membership(Mem_no:
integer, Stud_no: integer)
Book(book_no:
integer, book_name:string, author: string)
Iss_rec(iss_no:integer,
iss_date: date, Mem_no: integer, book_no: integer)
For the above schema, perform the
following—
a) Create the tables with the
appropriate integrity constraints
b) Insert around 10 records in
each of the tables
c) List all the student names
with their membership numbers
d) List all the issues for the
current date with student and Book names
e) List the details of students who borrowed book
whose author is CJDATE
f) Give a count of how many
books have been bought by each student
g) Give a list of books taken
by student with stud_no as 5
h) List the book details which are issued as of today
i) Create a view which lists
out the iss_no, iss _date, stud_name, book name
j) Create a view which lists
the daily issues-date wise for the last one week
Comments
Post a Comment