Lab 3 Convert To Relation DB
Lab 3 Convert To Relation DB
Lab 3 Convert To Relation DB
Convert to Relation DB
Ex1
ERD 1
Relational Database
- Employees (ID, Name, ManageID)
- FK: ManageID
ERD 2
RD:
- Flights (Flight#, FromCode, ToCode, Date)
FK: FromCode, ToCode
- Locations (Code, Name)
ERD3
RD:
- Employees (ID, Name)
- Products (Code, Name, ProcessCode)
FK: ProcessCode
ERD 4
RD:
- Employees (ID, Name)
- Products (Code, Name, Price, Date, EmployeeID)
FK: EmployeeID
ERD 5
RD:
- Employee (Flight#, Date)
- Product (Code, Name)
- Customer (CustomerID, Name)
Sale (Flight#,, Code, Quantity, CustomerID)
FK: Flight#, Code, CustomerID
ERD 6
RD:
- Person (Code, Name)
- Teacher (PersonCode, Speciality)
FK: PersonCode
- Student (PersonCode, Class)
FK: PersonCode
Ex2