Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

6 . Write the SQL statement to create a report with employee employee ids, last names, job id , phone numbers, and salary for all

6. Write the SQL statement to create a report with employee employee ids, last names, job id, phone numbers, and salary for all employees who make at least $8,000 AND their job id is IT_PROG.
ALSO WRITE DOWN HOW MANY ROWS ARE DISPLAYED/OUTPUT AS A RESULT OF YOUR SQL STATEMENT 8. Perform an SQL query that displays the first names, last names, job ids, and salaries of all employees that have the job_id of SA_REP and also have a salary that is greater than $10000. Make sure your display is sorted by (ordered by) first_name in ascending order.
9. Create a report that displays the first names, last names, e-mails, department ids, and salaries of all employees that work in Department 50(e.g. they have department_id of 50).
Sort your display/output by salary in descending order. 10. Write the SQL statement that will output/display last names, job ids, and salaries for all employees that make at least $3500 and have a job id of SH_CLERK (Showroom Clerks) or ST_CLERK (Store Clerks).
Your output will be eight (8) different employees. 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

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

More Books

Students also viewed these Databases questions