Question: Delete all the tables in your database. Make a script that creates the tables for the ERD below. Choose data types that seem appropriate.

Delete all the tables in your database. Make a script that creates

Delete all the tables in your database. Make a script that creates the tables for the ERD below. Choose data types that seem appropriate. Make sure that you use the proper cascading foreign key constraint actions where necessary. Ensure that the composite foreign key in Field is truly composite. Set cpolicylD in Field so the value is set to NULL if the parent value is deleted. Attribute names in bold cannot be null (all primary keys plus Username, Password, AgencyID, InsuredID, StateCode and SectionID). Leave your populated tables in your database so I can check them. You must do this on my SQL Server instance. Upload your script to Canvas as FarmandRanch.sql Agency AgencyID AgencyStreet H AgencyCity AgencyZip AgencyPhone System Account SystemiD AgencyID Username Password Crop CPolicy D CropName Field Field10 CPolicy D StateCode Section D YieldPerAcre Policy PolicylD AgencylD InsuredID CoverageAmount PolicyDate Cattle LPolicy D Breed Section StateCode H-SectionID SoilType PercentArable -H- Primary Insured Insuredi InsuredName InsuredPhone

Step by Step Solution

3.50 Rating (150 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

CREATE PROCEDURE dboCreateeCommerceTables AS IF NOT EXISTS SELECT FROM sysTables WHERE namecustomer CREATE TABLE Customer CustID INT NOT NULL fname VA... View full answer

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!