CS'22 DB Lab 09
CS'22 DB Lab 09
→ Lab Tasks:
Task 1: Draw ENTITY RELATIONSHIP DIAGRAM:
There is a insurance broker that specialise in insuring paintings
for galleries. You are required to design a database for this company.
● The database must store painters, paintings, and galleries information.
● Painters have a unique number, Name, and phone number
● Paintings have unique number, title and price
● Galleries have unique number, owner, phone number, commission rate and
address
● A painting is painted by a particular artist, and that painting is exhibited in a
particular gallery. A gallery can exhibit many paintings, but each painting
can be
exhibited in only one gallery. Similarly, a painting is painted by a single
painter, but
each painter can paint many paintings
Task 2:
Shipped items are the heart of an ecommerce product tracking information system.
Shipped items can be characterized by item number (unique), weight, dimensions,
insurance amount, destination, and final delivery date. Shipped items are received
into the UPS system at a single retail center. Retail centers are characterized by
their type, uniqueID, and address. Shipped items make their way to their
destination via one or more standard UPS transportation events (i.e., flights, truck
deliveries). These transportation events are characterized by a unique
scheduleNumber, a type (e.g, flight,
truck), and a deliveryRoute.
Create an Entity Relationship diagram that captures this information about that
ecommerce company’s system. Be certain to indicate identifiers and cardinality
constraints.
Task 3:
Identify the Entities and their attributes. Draw an ERD (don’t miss to mention the
cardinality of the relationships and there might be some relationship attributes).