10 SQL Problems for Database Management

Anonymous
timer Asked: Feb 10th, 2019
account_balance_wallet $9.99

Question Description

I've attached a word file that has 10 SQL questions that need to be answered.

Attachment preview

Problem 7.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 results by employee number. Assume case sensitivity.

Problem 7.2

Using the EMPLOYEE, JOB, and PROJECT tables in the Ch07_ConstructCodatabase, write the SQL code that will join the JOB, EMPLOYEE, and PROJECTtables using common attributes. Display

Unformatted Attachment Preview

Tutor Answer

ProfessorArthur
School: University of Virginia

Attached.

Problem 7.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 results by employee number.
Assume case sensitivity.

SELECT emp_num, emp_lname, emp_fname, emp_initial
FROM employee
WHERE emp_lname Like ‘Smith%’
ORDER BY emp_num;
Problem 7.2
Using the EMPLOYEE, JOB, and PROJECT tables in the Ch07_ConstructCodatabase, write
the SQL code that will join the JOB, EMPLOYEE, and PROJECTtables using common
attributes. Display the attributes shown in the results presented in Figure P7.2, sorted by
project value.

SELECT Project.proj_name, Project.proj_value, Project.proj_balance
FROM Project
INNER JOIN Employee ON Project.proj_name=Employee.proj_name
INNER JOIN Job ON Employee.job_code=Job.job_code;

Problem 7.3
Write the SQL code that will produce the same information that was shown in Problem 2,
but sorted by the employee’s la...

flag Report DMCA
Review

Anonymous
Thank you! Reasonably priced given the quality not just of the tutors but the moderators too. They were helpful and accommodating given my needs.

Similar Questions
Related Tags

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors