Professional Documents
Culture Documents
ADBMS Sample Ques
ADBMS Sample Ques
Item (item_no,name,quantity)
Supplier(sno,name,addr,city,phone)
Item & supplier are related with many-to-many relationships.
Create the relations accordingly, so that the relationship is handled properly and the relations
are in normalized form(3NF) and insert 5 records into each table.
Solve the following queries
a) List all the details of items having quantity > 500
b) Increase the 5% rate of the item mouse.
c) Display all the supplier who’s city is ‘Mumbai’.
Q.2) Practical Questions on PostgreSQL
Item (item_no,name,quantity)
Supplier(sno,name,addr,city,phone)
Item & supplier are related with many-to-many relationships.
Create the relations accordingly, so that the relationship is handled properly and the relations
are in normalized form(3NF) and insert 5 records into each table.
Solve the following queries
a) List all the details of items having quantity greater than 500.
b) Increase the 5% rate of the item mouse.
c) Display all the supplier who’s city is ‘Mumbai’.
Person (pnumber integer, pname varchar (20), birthdate date, income money)
Area ( aname varchar (20), area-type varchar (5) )
An area can have one or more persons living in it, but a person belongs to exactly one area.
The attribute ‘area_type’ can have values either ‘urban’ or ‘rural’.
Create the relations accordingly,so that the relationship is handled properly and the relations
are in normalized form(3NF) and insert 5 records into each table.
1. List out all the competitions held in the school for class 10 th in year 2016.
2. List out all the competitions held in the school under ‘academic’ in year 2016.
B) Create a view (Any one)
1. To display competition held under ‘Sports’ type.
2. To list competition name year wise.
3. To contain student name, class, competition name, rank and year. The list should
be sorted by student name.
Item (item_no,name,quantity)
Supplier(sno,name,addr,city,phone)
Item & supplier are related with many-to-many relationships.
Create the relations accordingly, so that the relationship is handled properly and the relations
are in normalized form(3NF) and insert 5 records into each table.
Solve the following queries
a) List all the details of items having quantity > 500
b) Display all the items in descending order.
c) Display all the supplier who’s city is ‘Mumbai’.