Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: David M. Kroenke

5th Edition

B000CSIH5A, 978-0023668814

More Books

Students also viewed these Databases questions

Question

Describe how projective tests are used.

Answered: 1 week ago

Question

2. What is the impact of information systems on organizations?

Answered: 1 week ago

Question

Evaluate the impact of technology on HR employee services.

Answered: 1 week ago