Write the query. 1. Display the last name and salary for all employees whose salary is not in the range of $5,000 and $12,000. 2. Display the employee last name, job ID, and start date of employees hired between February 20, 1998, and May 1, 1998. 3. Display the last name and salary of employees who earn between $5,000 and $12,000, and are in department 20 or 50. 4. Display the last name, job, and salary for all employees whose job is sales representative or stock clerk and whose salary is not equal to $2,500, $3,500, or $7,000. 5. Display the last name, salary, and commission for all employees whose commission amount is 20%. Note: this question is related from database subject.

Database Systems: Design, Implementation, & Management
12th Edition
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Carlos Coronel, Steven Morris
Chapter8: Advanced Sql
Section: Chapter Questions
Problem 55P
icon
Related questions
Question

Write the query.

1. Display the last name and salary for all employees whose salary is not in the range of $5,000 and $12,000.

2. Display the employee last name, job ID, and start date of employees hired between February 20, 1998, and May 1, 1998.

3. Display the last name and salary of employees who earn between $5,000 and $12,000, and are in department 20 or 50.

4. Display the last name, job, and salary for all employees whose job is sales representative or stock clerk and whose salary is not equal to $2,500, $3,500, or $7,000.

5. Display the last name, salary, and commission for all employees whose commission amount is 20%.

Note: this question is related from database subject.

Expert Solution
steps

Step by step

Solved in 4 steps with 4 images

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning