Table Name Attribute Name Contents Type Format Required PK or FK FK Referenced
Table Customer Cust_Code Customer Code Int xxxx… Y PK Cust_Title Customer Title Char(5) Xxxxx N Cust_LName Customer Last Name Varcha(15) xxxx…. Y Cust_Fname Customer First Name Varcha(15) xxxx.... N Cust_Initial Customer Initial Char(1) x N Cust_Adress Customer Address Varcha(35) xxxx…. Y Cust_City Customer City Char(15) xxxx…. Y Cust_AreaCode Customer Area Code Char(3) Xxx N Cust_Phone Customer Phone Char(8) 7777…. N
Vendor Ven_Code Vendor Code Int xxxx… Y PK
Ven_Name Vendor Name Varchar(25) xxxx… Y Ven_Contact Vendor Contact Varchar(50) 777…. N Ven_AreaCode Vendor AreaCode Char(3) Xxx Y Ven_Phone Vendor Phone Char(8) 7777… Y
Invoice Inv_Numbr Invoice Number Int Inv99999.. Y PK
Cust_Code Customer Code Int xxxx… Y FK Tbl_Customer Inv_Date Invoice Date Date/Time dd/mm/yy Y Inv_Tax Invoice Tax Cur $ N Inv_Total Invoice Total Cur $ N
Product Prod_ Code Product Code Char (10) xxxxx…. Y PK
Prod_Desc Product Description Varchar(35) xxxxx…. Y Prod_Indate Product indate Date/Time dd/mm/yy Y Prod_QOH Product Quantity on Hand Int xxxxx… Y Prod_Min Product Minimum Int xxxxx…. N Prod_Price Product Price Cur $ Y Prod_Discount Product Discount Double % N Vend_Code Vendor Code int xxxxx…. N FK Tbl_Vendor
Line Inv_Number Invoice Number Int Inv999999 Y PK,FK Tbl_Invoice
Prod_Code Product Code Char(10) xxxxx…. Y PK,FK Tbl_Product Line_Units Line Units Int xxxxx…. Y Line_Price Line Price Cur $ Y Line_Amount Line Amount Cur $ y