Question: Question 1 1 Let us consider the following relational database. Students ( stulD , lastName, firstName, major, gpa ) Faculty ( taclD , name, deptName,

Question 11Let us consider the following relational database. Students(stulD, lastName, firstName, major, gpa) Faculty(taclD, name, deptName, rank) Classes (classNumber, facID, schedule, room) Enrolls(stulD, classNumber, grade)The 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(9), lastiName VARCHAR(20), firstName VARCHAR(20), major VARCHAR(40), gpa DECIMAL (3,2)PRIMARY KEY (stulD));However, this statement does not work correctly.Tasks:A. Briefly explain whyB. List the corrected SQL statement.For the toolbar, press ALT+F10(PC) or ALT+FN+F10(Mac).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!