LAB 3: High-Level Database Model 1. Convert ER Diagram To Relational DB and Implement To MS SQLSRV. A. ERD 1 I
LAB 3: High-Level Database Model 1. Convert ER Diagram To Relational DB and Implement To MS SQLSRV. A. ERD 1 I
Class: IA1161
Subject: Introduction to Database
Flights
Flight#
Locations
FromCode Code
ToCode Name
Date
c. ERD 3
i. RD:
- Employees (ID, Name)
- Products (Code, Name, Price, Date, EmployeeID)
FK: EmployeeID
ii. MS SQL:
Products Employees
Code ID
Name Name
Price
Date
EmployeeID
d. ERD 4
i. RD:
- Employee (EmpID, Name)
- Product (Code, Name)
- Customer (CustomerID, Name)
- Sale (EmpID, Code, Quantity, CustomerID)
FK: EmpID, Code, CustomerID
ii. MS SQL:
Employee
EmpID
Name
Sale
Product EmpID
Code Code
Name Quantity
CustomerID
Customer
CustomerID
Name
e. ERD 5
i. RD:
- Person (Code, Name)
- Teacher (PersonCode, Speciality)
FK: PersonCode
- Student (PersonCode, Class)
FK: PersonCode
ii. SQL:
Person
Code
Name
Student Teacher
PersonCode PersonCode
Speciality
Class