Question: Please help with SQL assignment. Requirements: - Constraint naming: All constraints except NOT NULL constraints should be assigned a name. - Foreign key columns: No
Please help with SQL assignment.


Requirements: - Constraint naming: All constraints except NOT NULL constraints should be assigned a name. - Foreign key columns: No NULL values should be allowed in FK columns except the Prob.ID column of the Sentences table because sentences aren't always probation. If the sentence is not probation, the ProboatD column is NULL. Writing commands to do the following: - First, drop the APPEALS, CRIME_OFFICERS, and CRIME_CHARGES tables. These three tables are to be built last, using a CREATE TABLE command that includes all the necessary constraints. - Second, use the ALTER TABLE command to add all constraints to the existing tables. Note that the sequence of constraint addition has an impact. Any tables referenced by FOREIGN KEYs must already have the PRIMARY KEY created. - Third, use the CREATE TABLE command to build the three tables dropped in the first step. Conctraint lict
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
