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 4 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 All-Star', 'World Series MVP','TSN Fireman of the Year', 'TSN Pitcher of the Year', 'Hank Aaron Award',
'Pitching Triple Crown', 'All-Star Game MVP', 'Gold Glove', 'Babe Ruth Award', 'Hutch Award', 'TSN All-Star', '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 AwardsPlayer_PK

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!