Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 9

DATABASE

SGROUP
e c ti o nNAME
:N5/A

ORDERING
Henokwondwosen…….UU79486R

YeabsiraTafa………..UU79441R

MANGEMENT
Estifanoskinde……..UU80712R

DagnachewAgegnehu……UU79470R

SYSTEM
ER DIAGRAM FOR ORDERING MANAGMENT
SYSTEM

O NO
CFN
P-ID
CLN O-ID
CIDD- CS
IDCC
ORDER C DATE
C-A CUSTOMER ORDER PROD

CADD
DATE ORDER
QUAN

CPNO

PAY Recei
ve
order
eid
PNO qua E name
T id

O NO
PAYMENT TRANSACTION employee E add

price Database Design for Ordering Management System Features:


E age
dat T date E sex
1. Products(add, view, update)
2. Manage
p Orders Get
3. Manage
ai User(add, delete, update) prod
d
4. Customer Profile
S id
5. Product Purchase
S name by Supplier P name P date

6. Purchases order
7. Customer(Customer Order, Wholesale Customer)  
SUPPLIER Product
Supply prod
pid

S address P type
S cellphone qty
NORMALIZATION TABLE FOR CUSTOMER
ATTRIBUTE DATA TYPE FIELD SIZE DEFAULT
NAME VALUE
C_id(P.K) TEXT 9
C_F.Name TEXT 25
C_ L.Name TEXT 25
C_ SEX TEXT 1
C_AGE NUMBER _
C_ CITY TEXT ADISS ABABA
C_SUB CITY TEXT 25
C_ WOREDA NUMBER _
C_ H.NO text 5
C_ P.NUMBER TEXT 17
1
C_ P.NUMBER TEXT 17
2
O_ ID(F.K) TEXT 9

1 NF

Id, customer ID, Customer F name, customer L name, customer city address, customer full address ,
customer age, customer cell phone, order id

2 NF

Customer F name, customer L name , customer ID , customer city address, customer h no, customer age,
customer cell phone1, customer cellphone 2, Order id

3 NF

Customer F name, customer L name, customer ID, customer city address, customer age, customer
cellphone1, Order id
NORMALIZATION FOR EMPLOYEE
ATTRIBUTE DATA TYPE FIELD SIZE CONSTRAINT DEFAULT
Name VALUE
E_ID(P.K) TEXT 9
E_ F.N TEXT 25
E_ L.N TEXT 25
E_ SEX TEXT 1
E_ AGE NUMBER 2 <18
E_ city TEXT 25
E_ sub city TEXT 25
E_ woreda NUMBER _
E_ H. NO TEXT 5
E_ TEXT 17
cellphone1
E- TEXT 17
cellphone2
T_ID(F.K) TEXT 25
1 NF

Employee id, employee F name, employee middle name, employee L name, employee age, address of
employee, employee cellphone, employee salary, employee job title, employee user name, employee
salary, product id

2 NF

Employee id, employee F name, employee middle name, employee L name, employee age, employee
city, employee woreda, employee cellphone, employee salary, employee job title, employee user name,
employee salary, product id

3 NF

Employee id, employee F name, employee L name, employee age, employee city, employee woreda,
employee cellphone1, employee cellphone2, employee salary, employee job title, employee user name,
employee salary, product id
NORMALIZATION FOR order
ATTRIBUE Data type Field size Default
Name vlue
O_Id (P.K) TEXT 7
P_ID TEXT 7
Date_orde TEXT 25
r
QUANTITY TEXT 25
Price CURRENCY 11
Date_claim Varchar 25
O_NO Varchar 25
C_ID (FK) Int 7

1 NF

Order id, product id, date order, quantity, price, date claim, order number, customer id

2 NF

Order id, product id, date order, time order, quantity, price, date claim, order number, customer id

3 NF

Order id, product id, date order, quantity, price, date claim, order number, customer id
NORMALIZATON FOR PAYMEN T
ATTRIBUTE DATA TYPE FIEL CONSTRAIN NUL DEFAUL
D T L OR T VALUE
SIZE NON
NUL
L
P_ID TEXT 7 NON
NUL
L
O_NO varchar 25 NON
NUL
L
C_ID TEXT 7 null
DATE_ORDE Varchar 25 NON
R NUL
L
Claim_date DATE&TIM 11 NUL
E L
QUALITY TEXT 1 NON
NUL
L
PRICE CURRENCY 11 NON
NUL
L

1 NF

Payment id, order no, date order, claim date, Qty, price, customer id

2 NF

Payment id, order no, date order, claim date, Qty, price, customer id

3 NF

Payment id, order no, date order, claim date, Qty, price, customer id
NORMALIZATION FOR PRODUCT
ATTRIBUTE DATA FIELD CONSRAIN NULL DEFAULT
TYPE SIZE T OR NON VALUE
NULL
P_id text 7 ???????? NON
NULL
P_name Varchar 25 NON
NULL
P_type Varchar 25 NON
NULL
QUANTITY text 25 NON
NULL
PRICE Currency 25 NON
NULL
1 NF

Product id, Products name, Product type,Quantity,Price, supplier id

2 NF

Product id, Products name, Product type,Quantity,Price, supplier id

3 NF

Product id, Products name, Product type,Quantity,Price, supplier id


NORMALIZATION FOR SUPPLIER
Attribute Data type Field size Default value

S_ID text 7

S_NAME Varchar 25

S_ADDRESS Text 25

S_CELLPHONE text 17

1 NF

Supplier id, supplier name, supplier address, contact number, product id

2 NF

Supplier id, supplier name, supplier address, supplier woreda, supplier city, supplier cellphone, product
id

3 NF

Supplier id, supplier name, supplier address, supplier woreda, supplier city, supplier cellphone, product
id
NORMALIZATION FOR TRANSACTION
Attribute Data type Field size Default value
Transaction_id Text 11
customer_id Text 7
Employee_id Text 7
Order_id Text 7
Product_id Text 7
Supplier_id Text 7
Payment_id Text 7

1 NF

Transaction id, customer id , employee id, order id, product id, supplier id, payment id

2 NF

Transaction id, customer id , employee id, order id, product id, supplier id, payment id

3 NF

Transaction id, customer id , employee id, order id, product id, supplier id, payment id

You might also like