0% found this document useful (0 votes)
56 views1 page

Varchar (8) NN (PK) (AK1) Code

The document outlines the tables and relationships in a database for an invoicing system. It includes tables for customers, suppliers, invoices, invoice details, products and employees. Relationships described include customers placing orders, suppliers invoicing orders, invoice details consisting of products and employees placing orders on behalf of suppliers.

Uploaded by

Jerome Luke
Copyright
© Attribution Non-Commercial (BY-NC)
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)
56 views1 page

Varchar (8) NN (PK) (AK1) Code

The document outlines the tables and relationships in a database for an invoicing system. It includes tables for customers, suppliers, invoices, invoice details, products and employees. Relationships described include customers placing orders, suppliers invoicing orders, invoice details consisting of products and employees placing orders on behalf of suppliers.

Uploaded by

Jerome Luke
Copyright
© Attribution Non-Commercial (BY-NC)
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/ 1

Code Name Street Suburb Postcode Term_Days Discount

Customer Varchar(8) Varchar(40) Varchar(40) Varchar(20) Integer Integer Integer

NN (PK) (AK1)

Is Placed Customer_To_Invoice_Header Places Supplier_Invoice_Header Internal_Doc_No Integer NN (PK) Doc_Num Varchar(20) NN Doc_Type Integer NN Invoice_Date Date NN Due_Date Date Invoice_Subtotal Double NN Paid Integer Emp_Code Varchar(3) NN (PFK) Customer_Invoice_Header Internal_Doc_No Integer NN (PK) Doc_Num Varchar(20) NN Doc_Type Integer NN Invoice_Date Date NN Due_Date Date Name Varchar(40) Street Varchar(40) Suburb Varchar(20) Postcode Varchar(40) Invoice_Subtotal Double NN Code Varchar(8) NN (PFK) Term_Days Integer Discount Integer Discount_Amt Double Paid Integer Is Contained Within Supplier_Invoice_Header_To_Invoice_Detail Contains Doc_Type Description Quantity Price LineNum Internal_Doc_No Product_Code SupCode Supplier_Invoice_Detail Integer NN Varchar(40) Double NN Double NN Integer Integer NN (PFK) Varchar(8) NN (PFK) Varchar(8) NN (PFK) Doc_Type Description Quantity Price LineNum Internal_Doc_No Product_Code SupCode

(AK1,AK3) (AK2)

(AK1,AK3) (AK2)

Employee Emp_Code Varchar(3) Emp_Name Varchar(40)

NN (PK) Is Placed By

Places

Employee_To_Supplier_Invoice_Header

Is Contained Within

Customer_Invoice_Header_To_Invoice_Detail Contains

Included

Invoice_Detail Integer NN Varchar(40) Double NN Double NN Integer Integer NN (PFK) Varchar(8) NN (PFK) Varchar(8) NN (PFK)

Included Supplier_Invoice_Detail_To_Products

Consists Invoice_Detail_To_Products Product Description Varchar(40) Qty_In_Stock Integer Price Double Cost Double Colour Varchar(15) Vintage Date Volume Integer Product_Code Varchar(8) NN (PK) SupCode Varchar(8) NN (PFK)

SupCode Name Street Suburb Postcode

Supplier Varchar(8) NN (PK) (AK1) Varchar(40) Varchar(40) Varchar(20) Integer

Supplies

Consists

Is Supplied Suppliers_To_Products

You might also like