Dbms Lab Set-Qp
Dbms Lab Set-Qp
1. List the price of the book which one is between the price of 400 & 500.
2. Creating Trigger To Insert Values To Another Table.
3. Write a pl/sql program to find the factorial of a given number.
4. Write a pl/sql program to find the greatest of a three numbers.
5. Design and implement library Management to insert data's in DB and delete Data from DB
using VB as front end and Ms-Access as back end.
1. Consider the following relational schema for Products Order database application:
a. Products (p_id, p_name, retail_price, qty_on_hand)
b. Orders (order_id, order_date)
c. Order_details (order_number, product_number, qty_ordered)
Where: order_number references order_id product_number references p_id
1. The primary keys are underlined. Identify the foreign keys
2. Include the constraint on orderid that it starts with letter ‘O’.
3. Display the ProdID and the sum of quantity ordered for each product.
4. Create a view that keeps track of P_id, price, order_id, qty_ordered and ordered_date.
5. Develop a procedure named Product_Orders that accepts a Product id or product number and
displays all the order_details of the product.
6. In the above created procedure include exception to display “No such Order Number” if incorrect
order number is given.