Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Name: Consider the following two tables and answer the questions below. STUDENT table [ [ STUDENT _ ID , L _ NAME,F _ NAME,MAJR
Name:
Consider the following two tables and answer the questions below.
STUDENT
tableSTUDENTIDLNAME,FNAME,MAJRCODESmith,John,CSAllgood,AICSMajor,Nancy,CHEMDavis,Karen,MATH
tableMAJORtableDEPARTMENTMAJRCODEComputer Science,CSPhysicsPHYSChemistryCHEMMathematicsMATH
The primary key.
a For the STUDENT table, the Entity Integrity rule means has to be unigue and cannot be noll
b For the STUDENT table, the Referential Integrity rule means has to be a valid. primary. Keg in ane ther table
c Write the SQL statement that displays the following report as it is shown below.
tableSTUDENTIDLASTNAME,FIRSTNAME,MAJOR,DEPARTMENT
Select STUDENTID LASTNAME, FIRSTNAME, MAJOR, DEPARTMENT From 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