Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 1 and 2 1. Write the SQL code required to list the employee number, last name, first name, and middle initial of all employees

Question 1 and 2
image text in transcribed
1. Write the SQL code required to list the employee number, last name, first name, and middle initial of all employees whose last names start with Smith. In other words, the rows for both Smith and Smithfield should be included in the listing. Sort the resulis by employee number. Assume case sensitivity. 2. Using the EMPLOYEE, JOB, and PROJECT tables in the Ch07_ConstructCo database, write the SQL code that will join the EMPLOYEE and PROJECT tables using EMP_NUM as the common attribute. Display the attributes shown in the results presented in Figure P7.2, sorted by project value. Figure P7.2 The Query Results for Problem 2 Details A table has nine columns and four rows with the following column headers: PROJ NAME, PROJ VALUE, PROJ BALANCE, EMP NAME, EMP F NAME, EMP INITIAL, JOB CODE, JOB DESCRIPTION, JOB C H G HOUR. For example, the first row reads: Rolling tide, 805,000 point 00,500,345 point 20, Senior, David, H,30 1, Systems Analyst, and 96 point 75. 1. Write the SQL code required to list the employee number, last name, first name, and middle initial of all employees whose last names start with Smith. In other words, the rows for both Smith and Smithfield should be included in the listing. Sort the resulis by employee number. Assume case sensitivity. 2. Using the EMPLOYEE, JOB, and PROJECT tables in the Ch07_ConstructCo database, write the SQL code that will join the EMPLOYEE and PROJECT tables using EMP_NUM as the common attribute. Display the attributes shown in the results presented in Figure P7.2, sorted by project value. Figure P7.2 The Query Results for Problem 2 Details A table has nine columns and four rows with the following column headers: PROJ NAME, PROJ VALUE, PROJ BALANCE, EMP NAME, EMP F NAME, EMP INITIAL, JOB CODE, JOB DESCRIPTION, JOB C H G HOUR. For example, the first row reads: Rolling tide, 805,000 point 00,500,345 point 20, Senior, David, H,30 1, Systems Analyst, and 96 point 75

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 Analysis Using SQL And Excel

Authors: Gordon S Linoff

2nd Edition

111902143X, 9781119021438

More Books

Students also viewed these Databases questions