Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ensure all your column names in your SELECT clause are spelled correctly Make sure you put commas after each column / attribute name in the

Ensure all your column names in your SELECT clause are spelled correctly
Make sure you put commas after each column/attribute name in the SELECT clause and dont put a comma after the last column name in the SELECT clause.
Put a semicolon ; at the end of your SQL statement 3. Create a report to display the employee ids, last names, and salaries for all the employees whose last names are either Doran, Hall, Matos, Urman, Cambrault, or Cabrio.
For your display/output, make sure it is sorted/in ascending order by salary (In our SQL #3 lecture, we discussed how to sort the output/display of our data in the last 6 slides).
Also: Write down the last name of the employee that appears first/at the top of your output.
4. Write the SQL statement to create a report from our hr.employees database table that displays all the employees first name, last name, email, and job id that have the job id of AD_VP or IT_PROG, or SH_CLERK.
Order/sort your output/display by job_id in descending order.
ALSO, WRITE DOWN THE FIRST AND LAST NAME OF THE PERSON AT THE BOTTOM OF THE LIST
5. Write the SQL statement to create a report that displays employee first names, last names, employee ids, phone numbers, and salaries of all employees that have an employee id of 106,107,108,112 or 114.
Make sure your output is sorted by last name in descending order.Initially we will work just with the HR.EMPLOYEES table.
HR.EMPLOYEES
employee_id
first_name
last_name
email
phone_number
hire_date
job_id
salary
commission_pct
manager_id
department_id
image text in transcribed

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

Relational Database And Transact SQL

Authors: Lucy Scott

1st Edition

1974679985, 978-1974679980

More Books

Students also viewed these Databases questions