Professional Documents
Culture Documents
Submitted by:
1. Danveer Singh (Student id: C0848519)
2. Sukhveer Singh Deol (Student id: C0848519)
3. Gursewak Singhgrewal (Student id: C0848519)
4. Rojan Shrestha (Student id: C0848519)
Submitted to:
Mr. Alireza Moghaddam
Danveer Singh (C0848519), Sukhveer Singh Deol (C0848519), Gursewak Singhgrewal (C0848519), Rojan Shrestha (C0848519) P a g e |1
Database Design Project
Company Overview/Description:
PentaElex is the company for selling writing accessories for the school and college students.
PentaElexa is available for 24hrs / 7 days in a week through online and offline selling prod-
ucts
Product: Pen
Product Attributes:
Product_id: INT(UID)
Product_model: NVarchar
Product_desc: NVarchar
Product_Brand: NVarchar
Product_dim: Nvarchar
Prouct_color: Nvarchar
Product_Price; INT
Product_Total: INT
Product_Qty; INT
Danveer Singh (C0848519), Sukhveer Singh Deol (C0848519), Gursewak Singhgrewal (C0848519), Rojan Shrestha (C0848519) P a g e |2
Database Design Project
Danveer Singh (C0848519), Sukhveer Singh Deol (C0848519), Gursewak Singhgrewal (C0848519), Rojan Shrestha (C0848519) P a g e |3
Database Design Project
Entities:
Foreign Keys
Danveer Singh (C0848519), Sukhveer Singh Deol (C0848519), Gursewak Singhgrewal (C0848519), Rojan Shrestha (C0848519) P a g e |4
Database Design Project
SQL File
Create a file called DB2_C00000.SQL,whereC00000isyourstudentnumber.
This file will contain all SQL code for the database build
All non-code must be commented so the entire code will run as a script
Atthetopofthefile,includeyourname,studentnumber,projectname,term,andprofessorname
Include headings and comments through out the document that clearly identify the SQL code and each step
in the process
Upon completion, this SQLfile will contain (1) DDL Create Statements; (2) , DDL Database Constraint
Statements; and (3) Database Constraint Testing
DDL Create Statements
1. Construct CREATE statements for each database table
2. Create INSERT statements that populate each table with test data. Include:
5 customers
3 associates
Danveer Singh (C0848519), Sukhveer Singh Deol (C0848519), Gursewak Singhgrewal (C0848519), Rojan Shrestha (C0848519) P a g e |5
Database Design Project
10 products
10 orders with at least two products on each order
SQL CODE:
CREATE TABLE Product (
Product_ID int NOT NULL PRIMARY KEY,
Product_desc varchar(255) NOT NULL,
Product_model varchar(255),
Product_Brand varchar(255),
Product_dim varchar(50),
Prouct_color varchar(20),
Product_Price INT,
Product_Total INT,
Product_Qty INT
);
SQL CODE:
CUSTOMER TABLE;
Danveer Singh (C0848519), Sukhveer Singh Deol (C0848519), Gursewak Singhgrewal (C0848519), Rojan Shrestha (C0848519) P a g e |7