180 likes | 538 Views
Trucking Company. By: Rebecca Sheppard. Database Used. AS 400 Accounts Payable Accounts Receivable Vouchering of Invoices Repair Orders (Main Use) Truck and Trailer info Daily Time. Several Locations. Main branch (Sandersville) Augusta Jeffersonville Savannah (Garden City)
E N D
Trucking Company By: Rebecca Sheppard
Database Used • AS 400 • Accounts Payable • Accounts Receivable • Vouchering of Invoices • Repair Orders (Main Use) • Truck and Trailer info • Daily Time
Several Locations • Main branch (Sandersville) • Augusta • Jeffersonville • Savannah (Garden City) • Charleston
Creating Table From Terminal info CREATE TABLE Site ( Terminal_Code CHAR (6), Site_Description VARCHAR2(15), CONSTRAINT Site_PK PRIMARY KEY (Terminal_Code) );
Creating Table From RO info CREATE TABLE RepairOrder ( Terminal_Code CHAR(6), RO_Number NUMBER(6,0), ID CHAR (1), Unit_Number CHAR(5), RO_Date DATE, Parts_Cost NUMBER(6,2), Labor_Cost NUMBER(6,2), CONSTRAINT RO_PK PRIMARY KEY (RO_Number), CONSTRAINT RO_Site_Code_FK FOREIGN KEY (Terminal_Code) REFERENCES Site(Terminal_Code) );
Prompt User • To enter Site Code • Display • Repair Order Number • Unit ID • Unit Number
Include Terminal Code Site Description RO Number ID Unit Number RO Date Parts Cost Labor Cost Total Amount (Parts Costs + Labor Costs) Compute Sum of Total Amount by Terminal Code Sum Parts Cost at end of Report Sum Labor Cost at end of Report Sum Total Amount at end of Report Create View and Report
Info on Howard Sheppard, Inc. • www.howardsheppard.com