Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. (TOTAL: 10 points) Show SQL data definition statements (create table) for the following t relations: STUDENT (SSN,firstName, lastName, age) COURSE (course ID, course_name, SSN,

image text in transcribed

2. (TOTAL: 10 points) Show SQL data definition statements (create table) for the following t relations: STUDENT (SSN,firstName, lastName, age) COURSE (course ID, course_name, SSN, grade). Enforce the following integrity constraints: SSN is a primary key in relation STUDENT - course ID is a primary key in relation COURSE - age - age must be strictly greater than 15 and strictly less than 100 - grade attribute must be A, B, C, D, or F all values for the attribute SSN in the relation COURSE must exist in the relation STUDENT

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

Lab Manual For Database Development

Authors: Rachelle Reese

1st Custom Edition

1256741736, 978-1256741732

More Books

Students also viewed these Databases questions