0% found this document useful (0 votes)
4 views6 pages

1st

The document outlines the structure of a database for a university project, detailing various tables such as Customers, Products, Employees, and Orders, along with their columns, data types, and constraints. It includes specific examples of table entries and highlights the relationships between different tables using foreign keys. Additionally, it presents an ER diagram to illustrate these relationships visually.

Uploaded by

soraigds
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views6 pages

1st

The document outlines the structure of a database for a university project, detailing various tables such as Customers, Products, Employees, and Orders, along with their columns, data types, and constraints. It includes specific examples of table entries and highlights the relationships between different tables using foreign keys. Additionally, it presents an ER diagram to illustrate these relationships visually.

Uploaded by

soraigds
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

University of Engineering and Technoloy Lahore

Department of Computer Science

Submitted to:Dr.Samyan Qayyum Wahla

Submitted by: Asra Shaheen 2024-CS-


139
1.TABLES:

Customers
Products
Employees
Categories
Orders
Products
Shippers
Suppliers
OrderDetails

3.Table Observation:

Columns Type Constraints


SupplierID varchar(50) Primary key:supplierID
SupplierName varchar(50)
ContactName varchar(50)
Address varchar(20)
PostalCode varchar(10)
Country varchar(15)
4.Recording of Tables:
1. Categories Table
Column Name Data Type Key/Constraint
CategoryID Int Primary Key,Unique
CategoryName varchar(25) -
Description varchar(255) -

2. Employees Table
Column Name Data Type Key/Constraint
EmployeeID Int Primary Key,Unique
LastName varchar(15) -
FirstName varchar(15) -
BirthDate datetime -
Photo varchar(25) -
Notes varchar(1024) -

5.Browsing Tables:
6.

6.Documentation of Table Example:


ProductID ProductName CategoryID SupplierID Unit Price

1 Apple Juice 1 1 Bottles 12.00

2 Ground Beef 2 2 Packs 8.50

3 Cheese 3 3 Kg 15.00

7.ER DIAGRAM:
7.Review of Table Relationships :
 Products. suppliersID suppliers.suppliersID(Foreign
Key)
 Orders..shipersID shippers.shipersID(Foreign Key)
 OrderDetails.OrderID → Orders.OrderID (Foreign Key)
 OrderDetails.ProductID → Products.ProductID (Foreign Key)
 Products.CategoryID → Categories.CategoryID (Foreign Key)
 Products.SupplierID → Suppliers.SupplierID (Foreign Key)

You might also like