logo

Entity Relationship Diagram docx

To give you practical experience in database modelling, normalization and writing SQL statements to query a relational database

14 Pages2468 Words15 Views
   

Added on  2022-08-19

Entity Relationship Diagram docx

To give you practical experience in database modelling, normalization and writing SQL statements to query a relational database

   Added on 2022-08-19

ShareRelated Documents
Running head: DATABASE MANAGEMENT
Database Management
Name of the Student:
Name of the University:
Author Note
Entity Relationship Diagram docx_1
1
DATABASE MANAGEMENT
Part A: Entity Relationship Diagram
The main entities and attributes identified in the system are:
Department (DeptID, DeptName)
Products (ProductNumber, ProductTitle, UnitPrice)
Stores (StoreID, Name, Address, FaxNumber)
Employees (EmployeeID, LastName, FirstName StoreID, DeptID)
Patrons (CustomerID, LastName, FirstName, PhoneNumber, Address)
Orders (OrderNumber, OrderDate, NumberOfProducts, CustomerID, EmployeeID)
ProductsOrdered (ID, ProductNumber, OrderNumber, QunatityOrdered)
Entity Relationship Diagram docx_2
2
DATABASE MANAGEMENT
Part B: Normalization
The normalized schema for the database has been provided below:
Department (DeptID (pk), DeptName)
Products (ProductNumber (pk), ProductTitle, UnitPrice)
Stores (StoreID (pk), Name, Address, FaxNumber)
Employees (EmployeeID (pk), LastName, FirstName StoreID (fk), DeptID (fk))
Patrons (CustomerID (pk), LastName, FirstName, PhoneNumber, Address)
Orders (OrderNumber (pk), OrderDate, NumberOfProducts, CustomerID (fk), EmployeeID (fk))
ProductsOrdered (ID (pk), ProductNumber (fk), OrderNumber (fk), QunatityOrdered)
Entity Relationship Diagram docx_3
3
DATABASE MANAGEMENT
Part C: Relational schema and MySQL database
Department
Attribute Datatype Size Key
DeptID Int Primary
DeptName Varchar 30
Products
Attribute Datatype Size Key
ProductNumber Int Primary
ProductTitle Varchar 30
UnitPrice Int
Stores
Entity Relationship Diagram docx_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Analysis & Database Development
|8
|256
|20

Database Management System
|15
|2546
|89

Database Management System
|17
|1391
|112