Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use Figure p7.1 for the following questions 1. Write the SQL code required to Output Employee number Last name first name middle intial Requirement Only

image text in transcribed

Use Figure p7.1 for the following questions

1. Write the SQL code required to

Output

Employee number

Last name

first name

middle intial

Requirement

Only return the above for users whose Last Name starts with SMITH

Sort the output table by Employee Number

Note

- Rows for both Smith and Smithfield should be included. So any name who begins with SMITH

image text in transcribed

2. Use EMPLOYEE JOB and PROJECT table in (Figure p7.1).

a. Write the SQL code that will join EMPLOYEE and PROJECT table using EMP_NUM as the common attribute and result in the table shown in the image "p7.2 Query Results")

b. Witrite the SQL code that will produce the same information as a. but sorted by employee's last name

FIGURE P7.1 THE CH07_CONSTRUCTCO DATABASE Relational diagram Table name: EMPLOYEE Database name: Ch07_ConstructCo Table name: JOB Tahla name. ASCICNMENT Table name: PROJECT FIGURE P7.2 THE QUERY RESULTS FOR PROBLEM 2

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

Joe Celkos Data And Databases Concepts In Practice

Authors: Joe Celko

1st Edition

1558604324, 978-1558604322

More Books

Students also viewed these Databases questions