Question: I need help with the following: After loading the data to the table write the SQL using ATLER statements to create: The appropriate primary key.
I need help with the following:
After loading the data to the table write the SQL using ATLER statements to create:
The appropriate primary key. It needs to be a compound primary key using columns
The appropriate foreign key for the playerid.
A check statement to check that the awardid column contains one of these values:
'Triple Crown', TSN Reliever of the Year', TSN Major League Player of the Year', 'Branch Rickey Award', 'Comeback Player of the Year',
'Rookie of the Year', 'Baseball Magazine AllStar', 'World Series MVPTSN Fireman of the Year', TSN Pitcher of the Year', 'Hank Aaron Award',
'Pitching Triple Crown', 'AllStar Game MVP 'Gold Glove', 'Babe Ruth Award', 'Hutch Award', TSN AllStar', 'ALCS MVP
'Outstanding DH Award', NLCS MVPTSN Guide MVP 'Reliever of the Year Award', 'Lou Gehrig Memorial Award', TSN Player of the Year',
Cy Young Award', 'Roberto Clemente Award', 'Most Valuable Player', 'Rolaids Relief Man Award', 'Silver Slugger', NLCS MVP
TSN Guide MVP
Hint: You can cut and paste this list if you use an IN clause for your check
The Constrains primary key, foreign key, and check statement must have a name included when you add the constraint. The constraint name must be different than the column the constraint is on An example would be naming the primary key constraint AwardsPlayerPK
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
