0% found this document useful (0 votes)
3 views3 pages

MLS 3 Data Dictionary and ER Diagram

The document contains a data dictionary and ER diagram detailing the structure of a database with five tables: 'customer', 'orders', 'orderitem', 'product', and 'supplier'. Each table is described with its variables and their corresponding descriptions, highlighting relationships between them, such as linking customer IDs to orders and product IDs to order items. The document emphasizes the unique identifiers for each entry in the tables and provides essential information for understanding the database schema.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

MLS 3 Data Dictionary and ER Diagram

The document contains a data dictionary and ER diagram detailing the structure of a database with five tables: 'customer', 'orders', 'orderitem', 'product', and 'supplier'. Each table is described with its variables and their corresponding descriptions, highlighting relationships between them, such as linking customer IDs to orders and product IDs to order items. The document emphasizes the unique identifiers for each entry in the tables and provides essential information for understanding the database schema.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Data Dictionary and ER Diagram

ER Diagram:

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 1
Data Dictionary:

‘customer’ table:

Variable Description

Id Unique ID for each customer, linked with the ‘CustomerID’ column in the ‘orders’ table

FirstName Customer’s first name

LastName Customer’s last name

City Customer’s city

Country Customer’s country

Phone Customer’s phone number

‘orders’ table:

Variable Description

Id Unique ID for each order, linked with the ‘OrderId’ column in the ‘orderitems’ table

OrderDate Date of the order

OrderNumber Another Unique ID for each order

CustomerId The ID of the customer who placed the order, linked with the ‘Id’ column in the ‘customer’ table

TotalAmount Total amount of money paid for the order

‘orderitem’ table:

Variable Description

Id Unique ID for each item in every order

OrderId The ID of the order containing this item, linked to the ‘Id’ column in the ‘orders’ table

ProductId The ID of the product which is the item, linked to the ‘Id’ column in the ‘product’ table

UnitPrice The unit price of the product

Quantity The number of items in the order

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 2
‘product’ table:

Variable Description

Id Unique ID for each available product, linked to the ‘ProductId’ column in the ‘orderitem’ table

ProductName Name of the product

SupplierId The ID of the supplier of the product, linked to the ‘Id’ column in the ‘supplier’ table

UnitPrice The unit price of the product

Package Description of the package in which the product comes in

IsDiscontinued 0 or 1 based on whether the product has been discontinued

‘supplier’ table:

Variable Description

Id Unique ID for each supplier, linked with the ‘SupplierID’ column in the ‘product table

CompanyName Name of the supplier

ContactName Name of the contact for the supplier

ContactTitle Title of the contact for the supplier

City The supplier’s city

Country The supplier’s country

Phone The supplier’s phone number

Fax The supplier’s fax

Proprietary content. © Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited. 3

You might also like