Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using *** SQL*** 1.) Complete the following exercises by creating a database called M5 using SQL server management server (SSMS) . As you write and

Using ***SQL***

1.) Complete the following exercises by creating a database called M5 using SQL server management server (SSMS) . As you write and execute the SQL DDL commands to complete the exercises below: PART A,B, & C,. Cut and paste the SQL into the Word document labeling each command with the corresponding exercise number. Answer any additional questions asked in each exercise below the SQL command.

PART A) Complete exercises E.5.3, E.5.6.

PART B) Complete exercise E.5.11 You will need to drop the tables you initially created to do this and modify the SQL commands from E.5.6 to add the primary key and foreign key constraints. Name the key constraints pk_customer, pk_order and fk_order_customer.

PART C) Complete exercises E.5.12

-----------------------------------------------------------------------------------------------------------------------------

E.5.3- Using the ALTER DATABASE statement, change the file size of the test_db database to 10MB.

image text in transcribed

E.5.11- Re-create the tables customers and orders, enhancing their definition with all primary and foreign keys constraints.

E.5.12 -Using SQL Server Management Studio, try to insert a new row into the orders table with the following values:

(10, 'ord01', getdate(), getdate(), 100.0, 'Windstar', 'Ocean', 1). Why isnt that working?

***if possible please provide screenshots. I am new to this and would like to see how it looks like.

E.5.6 Create the tables customers and orders with the following columns. (Do not declare the corresponding primary and foreign keys.) orders customers customerid char(5) not null companyname varchar(40) not null contactname char(30) null address varchar(60) null city char(15) null phone char(24) null fax char(24) null orderid integer not null customerid char(5) not null orderdate date null shippeddate date null freight money null shipname varchar(40) null shipaddress varchar(60) null quantity integer null

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago