Reference no: EM133370237
Question 1
We plan to construct a database for a parking service system. The university has many parking-lots which can accommodate many vehicles.
Each parking-lot has id, name, and location. A parking-lot consists of many parking spaces (or spots) and each parking space (or spots) has a unique number.
Every customer has zno and name. A customer can purchase more than one parking-permit.
A vehicle has id, brand, and color. A customer can own multiple vehicies.
Each parking permit has no. and price. A parking-permit allows a vechicle to park in dedicated parking spaces.
The university maintains a time table and uses it to record when a customer parks a vechicle at a dedicated parking space (or spot) at a specific time-slot in the timetable.
A time-table has id, date, and hour.
Draw an ER diagram for this application. Specify key attributes of each entity type and structural constraints on each relationship type
Question 2
Write DDL statements to create the tables for the ER diagram of Question1