Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Sql 3:11 PM moodle.latech.edu AT&T sure to put each code block with its query result. TO ACCESS SQL Tools: FIRST you will need to open

Sql image text in transcribed
image text in transcribed
3:11 PM moodle.latech.edu AT&T sure to put each code block with its query result. TO ACCESS SQL Tools: FIRST you will need to open the command line window (on anywhere.latech.edu or lab computers). Once the window is opened (access the Command Prompt) then use the following directions to get to an SQL prompt: ntype SQLlocalDB create type SQLlocalDB start ) type SQLlocalDB info )REM-note that you'll need to copy the string beginning with "np. . . returned after the command above 4) type sqlcmd -S np:\pipe'LOCALDB#STRING ABOVEtsalquery a) You'll now have access to the SQL prompt and able to create and modify tables and questions NOTES Be aware of typing in commands exactly as indicated but do not be surprised if they don't work flawlessly, as mentioned in class, SQL differs with various flavors and versions..be persistent and troubleshoot when needed. BE RESOURCEFUL: Great places to visit for additional information or to seek advice are www.stackoverflow.com or l. Create Tables NOTE: Replace the "xxx" with your initials in lowercase Table Name: EMPLOYEE XXX Attribute SSN Number Data Type Primary Foreign Constraint NOT NULL NOT NULL VARCHAR(15) Mid Name Last Name NOT NULL VARCHAR( 1 5> DATE VARCHARISO) CHAR Gender Gender CHECK DEFAULT 80000 Salary Supervisor SSN CHAR9 MONEY employee (SSN) Department Number INT Table Name: DEPARTMENT XXxx Attribute Department Name VARCHARIS) Department Number INT Manager SSN CHAR9) Data Type Primary Foreign NOT NULL NOT NULL NOT NULL Employee (SSN) ON DELETE SET Manage Start Date DATE Table Name: DEPT LOCATION XXX Data Tyee Primary Foreign

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_2

Step: 3

blur-text-image_3

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

Data Management Databases And Organizations

Authors: Richard T. Watson

2nd Edition

0471180742, 978-0471180746

More Books

Students also viewed these Databases questions

Question

3. Distinguish between hard and soft HRM.

Answered: 1 week ago

Question

8. Providing support during instruction.

Answered: 1 week ago