Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL Database IT240 For all screen shot requests be sure to show your object, query, and results in your screenshots. Verifying you have no tables

SQL Database IT240 For all screen shot requests be sure to show your object, query, and results in your screenshots. Verifying you have no tables in your database

Right Click on your database (your login name in the Object Explorer) and click Refresh

Expand your database (your login name)

Expand Tables

You should not have any tables listed there

Download the SQL Code

1. Run the first part of the code to create the DEPARTMENT table.

a. Right Click on your database (your login name in the Object Explorer) and click Refresh

b. Expand your database (your login name) if you it isnt visible

c. Expand Tables you should see a new DEPARTMENT table.

d. Insert a screen shot showing you have a DEPARTMENT table be sure to include the area showing your database name (your login name)

Screenshot Hot Keys: Windows WindowsKey + Shift Key + s Mac CmdKey + ShiftKey + 4 OR CmdKey + ShiftKey + 5

Insert Graphic Here

2. Run the second part of the code to create the EMPLOYEE table.

a. Right Click on your database (your login name in the Object Explorer) and click Refresh

b. Expand your database (your login name) if you it isnt visible

c. Expand Tables you should see a new EMPLOYEE table.

d. Insert a screen shot showing you have a EMPLOYEE table be sure to include the area showing your database name (your login name)

Insert Graphic Here

3. Run the third part of the code to create the PROJECT table.

a. Right Click on your database (your login name in the Object Explorer) and click Refresh

b. Expand your database (your login name) if you it isnt visible

c. Expand Tables you should see a new PROJECT table.

IT 240 ASSIGNMENT RUNNING SQL CODE

d. Insert a screen shot showing you have a PROJECT table be sure to include the area showing your database name (your login name)

Insert Graphic Here

4. Run the fourth part of the code to create the ASSIGNMENT table.

a. Right Click on your database (your login name in the Object Explorer) and click Refresh

b. Expand your database (your login name) if you it isnt visible

c. Expand Tables you should see a new ASSIGNMENT table.

d. Insert a screen shot showing you have a ASSIGNMENT table be sure to include the area showing your database name (your login name)

Insert Graphic Here

In the Query Window execute the following command

SELECT * FROM EMPLOYEE;

Did you see any rows returned?

5. Run the fifth part of the code to INSERT 4 rows to your EMPLOYEE table.

a. In the Query Window execute the following command

b. SELECT * FROM EMPLOYEE;

c. Did you see any rows returned?

d. Insert a screen shot showing what data you have in the EMPLOYEES table be sure to include the area showing your database name (your login name)

Insert Graphic Here

6. Run the sixth part of the code to INSERT only 6 more rows to your EMPLOYEE table.

a. In the Query Window execute the following command

b. SELECT * FROM EMPLOYEE;

c. How many rows were returned?

d. Insert a screen shot showing what data you have in the EMPLOYEES table be sure to include the area showing your database name (your login name)

Insert Graphic Here

7. Try these insert rows (you may want to DELETE your existing rows first). What is wrong with the following INSERT commands (include answer in your submission):

INSERT IN EMPLOYEE (EmployeeNumber, FirstName, LastName, Department, Position, Supervisor, OfficePhone, EmailAddress) VALUES (5,'Alan','Adams','Human','H R 1',4,'360-285-8320','AlanAdams@WP.com');

IT 240 ASSIGNMENT RUNNING SQL CODE

INSERT INTO (EmployeeNumber, FirstName, LastName, Department, Position, Supervisor, OfficePhone, EmailAddress) VALUES (5,'Alan','Adams','Human','H R 1',4,'360-285-8320','AlanAdams@WP.com');

INSERT INTO EMPLOYEE (EmployeeNumber, FirstName, LastName, Department, Position, Supervisor, OfficePhone, EmailAddress) VALUES ('Alan','Adams','Human','H R 1',4,'360-285-8320','AlanAdams@WP.com');

INSERT INTO EMPLOYEE (EmployeeNumber, FirstName, LastName, Department, Position, Supervisor, OfficePhone, EmailAddress) VALUES ('Alan','Adams','Human','H R 1',4,'360-285-8320','AlanAdams@WP.com')

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 Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

Students also viewed these Databases questions

Question

Describa los Signos de Negligencia / Abuso a los Ancianos.

Answered: 1 week ago

Question

sharing of non-material benefits such as time and affection;

Answered: 1 week ago