1- write the schema that descibes each relation. 2- For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None. 3- Design the schema diagram for the database.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Q3) Consider you have a database with the following tables:
Truck_num
Туре сode
Truck_miles
Truck_serial_num
АА-332-W11
АС-342-Q23
Base_code
1001
501
1
32113.89
1002
502
1
76984.3
1003
501
12345.6
АС-445-Z99
WQ-112-T34
FR-998-W12
1004
1
2894.3
1005
503
2
45673.1
Truck table
Base_code Base_city
Base_phone
Base_manger
Andrea.d
Base_state
Base_area_ code
501
Dalton
GA
615
123-4567
Lexington KY
Саре.С
Murfree
502
George.h
Maria.j.
Peter.f
566
234-5678
503
МО
456
345-6789
504
TN
901
456-7890
Base table
Туре сode
1
Type_description
Single box, double-axle
Single box, single-axle
Tandom trailer, single-axle
2
Type table
Answer the following:
1- write the schema that descibes each relation.
2- For each table, identify the primary key and the foreign key(s). If a table does not
have a foreign key, write None.
3- Design the schema diagram for the database.
Transcribed Image Text:Q3) Consider you have a database with the following tables: Truck_num Туре сode Truck_miles Truck_serial_num АА-332-W11 АС-342-Q23 Base_code 1001 501 1 32113.89 1002 502 1 76984.3 1003 501 12345.6 АС-445-Z99 WQ-112-T34 FR-998-W12 1004 1 2894.3 1005 503 2 45673.1 Truck table Base_code Base_city Base_phone Base_manger Andrea.d Base_state Base_area_ code 501 Dalton GA 615 123-4567 Lexington KY Саре.С Murfree 502 George.h Maria.j. Peter.f 566 234-5678 503 МО 456 345-6789 504 TN 901 456-7890 Base table Туре сode 1 Type_description Single box, double-axle Single box, single-axle Tandom trailer, single-axle 2 Type table Answer the following: 1- write the schema that descibes each relation. 2- For each table, identify the primary key and the foreign key(s). If a table does not have a foreign key, write None. 3- Design the schema diagram for the database.
Expert Solution
steps

Step by step

Solved in 2 steps with 4 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY