Question: Question 1 1 Let us consider the following relational database. Students ( stulD , lastName, firstName, major, gpa ) Faculty ( taclD , name, deptName,
Question Let us consider the following relational database. StudentsstulD lastName, firstName, major, gpa FacultytaclD name, deptName, rank Classes classNumber facID, schedule, room EnrollsstulD classNumber, gradeThe primary keys are underlined. The referential integrity constraints are as follows: the column facID of relation Classes that references table Faculty, the column stulD of relation Enrolls that references table Students, and the column classNumber of relation Enrolls that references table Classes.The following SQL statement is intended to define the table Students. However, this statement does not work correctly.CREATE TABLE Students stulD CHAR lastiName VARCHAR firstName VARCHAR major VARCHAR gpa DECIMAL PRIMARY KEY stulD;However, this statement does not work correctly.Tasks:A Briefly explain whyB List the corrected SQL statement.For the toolbar, press ALTFPC or ALTFNFMac
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
