Need help with the sql server database

  

1. Using the attached ERD file (animal hospital.pdf), the Normalization Table excel file (Normalization Table Animal Hospital.xlsx) create tables and insert the data form the normalization table. i.e.:

Ensure every table has a primary key, create a new database for this exercise, this way if you need to you can delete the database and start over. i.e.:

CREATE DATABASE animal_hospital;

GO

USE animal_hospital;

GO

DDLs/DMLs goes here

Screen shot goes here

2. Using the ERD add foreign keys to the tables that require them (should be five foreign keys). 

DDLs goes here

Screen shot goes here

3. Alter or update the tables in the animal_hospital database as follows:

a. Change the size of the street column in the customer table to char(250).

DDL goes here

Screen shot goes here

b. Add a constraint to the customer table so only the two digit abbreviation for the stat can be used. (only do New York, New Jersey, Connecticut)

DDL goes here

Screen shot goes here

i. Try inserting the following DML command into the customer table. What error did you get?
INSERT INTO dbo.Customer values( 204,’Ms.’,’Helen’,’Smith’, ‘750 King Street’,’Springfiele’,’MO’,’52145′);

Answer goes here

Screen shot goes here

4. Using the SELECT INTO Statement copy the pet name from dbo.pet, the type of pet from dbo.pet_type, and the whole name of its owner including salutation in one column. See example of solution for column names.

DML goes here

Screen shot goes here

  

5. Using the INSERT SELECT Statement create a table of 3 columns that will hold the copied data of the pet id from dbo.pet, the name of the pet from dbo.pet, and the type of animal 

DML goes here

Screen shot goes here

Calculate your order
Pages (275 words)
Standard price: $0.00
Client Reviews
4.9
Sitejabber
4.6
Trustpilot
4.8
Our Guarantees
100% Confidentiality
Information about customers is confidential and never disclosed to third parties.
Original Writing
We complete all papers from scratch. You can get a plagiarism report.
Timely Delivery
No missed deadlines – 97% of assignments are completed in time.
Money Back
If you're confident that a writer didn't follow your order details, ask for a refund.

Calculate the price of your order

You will get a personal manager and a discount.
We'll send you the first draft for approval by at
Total price:
$0.00
Power up Your Academic Success with the
Team of Professionals. We’ve Got Your Back.
Power up Your Study Success with Experts We’ve Got Your Back.