SQL Komande

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Thu Nov 22 15:49:58 2018, New Model - EER Diagram (part 1 of 1)

orderitems
orders order_num INT(11)
customers order_num INT(11) order_item INT(11)
cust_id CHAR(10) order_date DATETIME prod_id CHAR(10)
cust_name CHAR(50) cust_id CHAR(10) quantity INT(11)
cust_address CHAR(50) Indexes item_price DECIMAL(8,2)
cust_city CHAR(50) Indexes
cust_state CHAR(5) PRIMARY

cust_zip CHAR(10) FK_OrderItems_Products

cust_country CHAR(50)

cust_contact CHAR(50)

cust_email CHAR(255)

Indexes
PRIMARY

vendors
vend_id CHAR(10) products
vend_name CHAR(50) prod_id CHAR(10)

vend_address CHAR(50) vend_id CHAR(10)

vend_city CHAR(50) prod_name CHAR(255)

vend_state CHAR(5) prod_price DECIMAL(8,2)

vend_zip CHAR(10) prod_desc TEXT

vend_country CHAR(50) Indexes

Indexes PRIMARY

PRIMARY FK_Products_Vendors

1 of 1

You might also like