Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started