Question: Table name: BASE Primary key: BASENUM Attribute (Field) Name Data Declaration BASENUM BASECITY BASESTATE BASEPHON BASEMGR CHAR(3) VARCHAR2(20) CHAR(2) VARCHAR2(10) VARCHAR2(10) Table name: TYPE Primary

Table name: BASE Primary key: BASENUM Attribute (Field) Name Data Declaration BASENUM BASECITY BASESTATE BASEPHON BASEMGR CHAR(3) VARCHAR2(20) CHAR(2) VARCHAR2(10) VARCHAR2(10) Table name: TYPE Primary key: TYPENUM Attribute (Field) Name Data Declaration TYPENUM TYPEDESC CHAR(1) VARCHAR2(30) Table name: TRUCK Primary key: TNUM Foreign key: BASENUM, TYPENUM Attribute (Field) Name Data Declaration CHAR(4) CHAR(3) CHAR(1) NUMBER(7,1) DATE VARCHAR2(20) TNUM TYPENUM TMILES TBOUGHT TSERIAL Using SQL Create these three tables with appropriate primary and foreign key declaration. The order in which these three tables are created matters in this assignment. Pay special attention to referential integrity among the tables. Create the BASE table first, then the TYPE table, and finally the TRUCK table (since the TRUCK table is the one that has foreign keys)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
