onsider the database shown in Figure 1.2, whose schema is shown in Figure 2.1. What are the referential integrity constraints that should hold on the schema? Write appropriate SQL DDL statements to define the databas

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

Consider the database shown in Figure 1.2, whose schema is shown in Figure 2.1.
What are the referential integrity constraints that should hold on the schema?
Write appropriate SQL DDL statements to define the database.

STUDENT
Name
Student_number
Class
Major
Smith
17
CS
Brown
2
CS
COURSE
Course_name
Course_number
Credit hours
Department
CS
Intro to Computer Science
CS1310
4
CS3320
MATH2410
Data Structures
4
CS
Discrete Mathematics
Database
MATH
CS3380
CS
SECTION
Section_identifier Course_number
Semester
Year
Instructor
85
MATH2410
Fall
07
King
Anderson
92
CS1310
Fall
07
102
CS3320
Spring
08
Knuth
112
MATH2410
Fall
08
Chang
119
CS1310
Fall
08
Anderson
135
CS3380
Fall
08
Stone
GRADE_REPORT
Student_number
Section_identifier
Grade
17
112
B
17
119
85
A
92
A
102
B
8
135
A
PREREQUISITE
Prerequisite_number
CS3320
Course number
CS3380
Figure 1.2
A database that stores
CS3380
CS3320
MATH2410
student and course
CS1310
information.
Figure 2.1
Schema diagram for the
database in Figure 1.2.
STUDENT
Name Student_number Class Major
COURSE
Course_name Course_number Credit_hours Department
PREREQUISITE
Course_number Prerequisite_number
SECTION
Section_identifier Course_number Semester Year Instructor
GRADE_REPORT
Student_number Section_identifier Grade
Transcribed Image Text:STUDENT Name Student_number Class Major Smith 17 CS Brown 2 CS COURSE Course_name Course_number Credit hours Department CS Intro to Computer Science CS1310 4 CS3320 MATH2410 Data Structures 4 CS Discrete Mathematics Database MATH CS3380 CS SECTION Section_identifier Course_number Semester Year Instructor 85 MATH2410 Fall 07 King Anderson 92 CS1310 Fall 07 102 CS3320 Spring 08 Knuth 112 MATH2410 Fall 08 Chang 119 CS1310 Fall 08 Anderson 135 CS3380 Fall 08 Stone GRADE_REPORT Student_number Section_identifier Grade 17 112 B 17 119 85 A 92 A 102 B 8 135 A PREREQUISITE Prerequisite_number CS3320 Course number CS3380 Figure 1.2 A database that stores CS3380 CS3320 MATH2410 student and course CS1310 information. Figure 2.1 Schema diagram for the database in Figure 1.2. STUDENT Name Student_number Class Major COURSE Course_name Course_number Credit_hours Department PREREQUISITE Course_number Prerequisite_number SECTION Section_identifier Course_number Semester Year Instructor GRADE_REPORT Student_number Section_identifier Grade
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps with 2 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