Вы находитесь на странице: 1из 1

SSN COLLEGE OF ENGINEERING Faculty: 

Department of  B. Senthil Kumar, Asst. Prof.
Computer Science & R. Kanchana, Asst. Prof.
Engineering
CS2258 – DBMS Lab Assigned: 01­Feb­11
Assignment – 4 Due :  02­Feb­11
Title:  Views

Manufacturers'
 Information

 Aim:    
To create view(s) based on table(s) or view(s) and observe its behavior while performing
update operations on it. 
Use the schema from Assignment – 3 for the following:
Before creating view(s), make a price of product in Laptop relation not to accept null values.
1. Create a view named LAPTOP_VU that displays the model number, speed, ram and hd.
2. Create a view named B_PROD that displays the products (model number, product type)
manufactured by the manufacturer B. Label the view columns. Do not allow the model to be
reassigned to another manufacturer through the view.
3. Create a view called COMP_DETAILS that displays maker, model number, type, speed, RAM,
hd and price of all computers.
4. Create a view named PROD_PRICE that displays maximum price of each product and the
number of each type of product.
5. Create a view called COMP_VU on COMP_DETAILS (as defined is 3), that displays maker,
model and price of all PC.

Note: Notify the changes reflected in the base tables when you update through the view.
Classify the views as follows:
i) updatable view – views whose rows can be modified – cannot be inserted into
ii) insertable­into view – views into which new rows can be inserted 

What you have to submit:
1. Schema Diagram with constraints
2. Demo script file

Вам также может понравиться