Question: Consider the above database defined by the relations: STUDENT, COURSE, SECTION, GRADE_REPORT, PREREQUISITES. STUDENT Name Student Number Class Major Smith CS CS Department CreditHours Brown


Consider the above database defined by the relations: STUDENT, COURSE, SECTION, GRADE_REPORT, PREREQUISITES. STUDENT Name Student Number Class Major Smith CS CS Department CreditHours Brown COURSE CourseName Intro to Computer Science Data structures Discrete Math Database CourseNumber CS1310 CS3320 MATH2410 CS3380 CS MATH CS SECTION Year Instructor King 92 Sectionidentifier CourseNumber Semester 85 Math2410 Fall CS1310 Fall 102 CS3320 Spring 112 MATH2410 Fall 119 CS1310 Fall CS3380 Fall Anderson Knuth Chang Anderson Stone 135 2280 GRADE-REPORT Grade StudentNumber 17 17 SectionIdentifier 112 119 85 00 00 102 136 00 PREREQUISITES CourseNumber CS3380 CS3380 CS3320 PrerequisiteNumber CS3320 MATH2410 CS1310 1) Give the schema of each relation. 2) Find a suitable primary key for each relation. 3) Using the schema you obtained in 1), draw the foreign key constraints for the database. Consider the above database defined by the relations: STUDENT, COURSE, SECTION, GRADE_REPORT, PREREQUISITES. STUDENT Name Student Number Class Major Smith CS CS Department CreditHours Brown COURSE CourseName Intro to Computer Science Data structures Discrete Math Database CourseNumber CS1310 CS3320 MATH2410 CS3380 CS MATH CS SECTION Year Instructor King 92 Sectionidentifier CourseNumber Semester 85 Math2410 Fall CS1310 Fall 102 CS3320 Spring 112 MATH2410 Fall 119 CS1310 Fall CS3380 Fall Anderson Knuth Chang Anderson Stone 135 2280 GRADE-REPORT Grade StudentNumber 17 17 SectionIdentifier 112 119 85 00 00 102 136 00 PREREQUISITES CourseNumber CS3380 CS3380 CS3320 PrerequisiteNumber CS3320 MATH2410 CS1310 1) Give the schema of each relation. 2) Find a suitable primary key for each relation. 3) Using the schema you obtained in 1), draw the foreign key constraints for the database
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
