CS3481 SET 2 Split Up (1)
CS3481 SET 2 Split Up (1)
a) Retrieve details of all books in the Book_id, title, name of publisher, authors
b) Get the particulars of borrowers who have borrowed more than 3 books, but from Jan
2017 to Jun2017.
c) Delete a book in BOOK table. Update the contents of other tables to reflect this data
Manipulation operations.
d) Create a view of all books and its number of copies that are currently available in the
Library.
e) Write a Pl/SQL procedure to display the book details of particular author.
Aim and
SQL Query Execution and
Procedure / E- Viva-voce Record Total
and Program Results
R Diagram
20 30 30 10 10 100
Aim and
SQL Query Execution and
Procedure / E- Viva-voce Record Total
and Program Results
R Diagram
20 30 30 10 10 100
a) Develop a query to grant some privileges of employees table into departments table
b) Develop a query to revoke all privileges of employees table from departments table
c) Develop a query to revoke some privileges of employees table from departments table
d) Write a query to implement the save point.
e) Demonstrate the user defined procedure for the above employee database
Aim and
SQL Query Execution and
Procedure / E- Viva-voce Record Total
and Program Results
R Diagram
20 30 30 10 10 100
Create the tables CUSTOMER (C_ID, Name, Address, City, Mobile_No) and
ORDER (C_ID, P_ID, P_Name, P_COST),
a) List the names and addresses of all the customers who have ordered products of
costmore than 500.
b) List the names of all the products ordered whose cost is 1,000 or more.
c) List the product names which are ordered by customers of "City = Delhi".
d) Add column "Email_id" in the CUSTOMER table.
e) Demonstrate the user defined function for the above tables.
Aim and
SQL Query Execution and
Procedure / E- Viva-voce Record Total
and Program Results
R Diagram
20 30 30 10 10 100
Create a Employee database and write SQL Triggers for insert, delete, and update operations in
a database table.
Aim and
SQL Query Execution and
Procedure / E- Viva-voce Record Total
and Program Results
R Diagram
20 30 30 10 10 100
a) Write sql query to display Suplier numbers and Supplier names whose name starts with ‘S’
b) Write sql query to add a new column called CONTACTNO.
c) Write sql query to display supplier numbers, Suplier names and item price for suppliers in
Chennai in the ascending order of item price.
d) Create a view on the table which displays only supplier numbers and supplier names.
e) Demonstrate the procedure for the supplier table.
Aim and
SQL Query Execution and
Procedure / E- Viva-voce Record Total
and Program Results
R Diagram
20 30 30 10 10 100