Student Id University Name
Student Id University Name
Student id
University name
Contents
Introduction:.........................................................................................................................................2
ERD:.......................................................................................................................................................2
Sample Data:.........................................................................................................................................3
Queries:.................................................................................................................................................3
Introduction:
In this we have given an ERD diagram and the scenario and by using that we have to
generate the database of the system. The ERD is also in this file and the execution of the database is
also present in it.
ERD:
Sample Data:
Queries:
Task 1:
Task 2:
Task 3:
Task 4:
Task 6:
update building
2 set buliding_capacity=2000
Task 8:
2 where buliding_capacity>3000;
Task 9:
update apartment
3 where building_id=4;
Task 10:
Task 11:
Task 12:
Task 13:
Task 15:
Task 16:
Task 18:
2 join building
3 on building.build_id=apartment.apart_id;
Task 19:
Task 20:
Task 22:
Task 23:
Task 24: