Answered step by step
Verified Expert Solution
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,
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
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