Write a query to display the employee number, last name, first name, salary “from” date, salary end date, and salary amount for employees 83731, 83745, and 84039. Sort the output by employee number and salary “from” date (Refer to Figure P7.31)

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Write a query to display the employee number, last name, first name, salary “from” date, salary end date, and salary amount for employees 83731, 83745, and 84039. Sort the output by employee number and salary “from” date (Refer to Figure P7.31)

**Figure P7.31: Salary History for Selected Employees**

| EMP_NUM | EMP_LNAME | EMP_FNAME | SAL_FROM   | SAL_END    | SAL_AMOUNT |
|---------|-----------|-----------|------------|------------|------------|
| 83731   | VARGAS    | SHERON    | 7/15/2018  | 7/14/2019  | 43740      |
| 83731   | VARGAS    | SHERON    | 7/14/2019  | 7/13/2020  | 48110      |
| 83731   | VARGAS    | SHERON    | 7/13/2020  | 7/14/2021  | 49550      |
| 83731   | VARGAS    | SHERON    | 7/15/2021  |            | 51040      |
| 83745   | SPICER    | DWAIN     | 8/1/2016   | 8/1/2016   | 50000      |
| 83745   | SPICER    | DWAIN     | 8/2/2016   | 8/2/2017   | 57700      |
| 83745   | SPICER    | DWAIN     | 8/3/2017   | 8/1/2018   | 63470      |
| 83745   | SPICER    | DWAIN     | 8/1/2018   | 8/1/2019   | 68570      |
| 83745   | SPICER    | DWAIN     | 8/2/2019   | 7/31/2020  | 71980      |
| 83745   | SPICER    | DWAIN     | 8/1/2020   | 8/1/2021   | 74100      |
| 83745   | SPICER    | DWAIN     | 8/2/2021   |            | 76820      |
| 84039   | COLEMAN   | HANNAH    | 6/28/2018  | 6/27/2019  | 47380      |
| 84039
Transcribed Image Text:**Figure P7.31: Salary History for Selected Employees** | EMP_NUM | EMP_LNAME | EMP_FNAME | SAL_FROM | SAL_END | SAL_AMOUNT | |---------|-----------|-----------|------------|------------|------------| | 83731 | VARGAS | SHERON | 7/15/2018 | 7/14/2019 | 43740 | | 83731 | VARGAS | SHERON | 7/14/2019 | 7/13/2020 | 48110 | | 83731 | VARGAS | SHERON | 7/13/2020 | 7/14/2021 | 49550 | | 83731 | VARGAS | SHERON | 7/15/2021 | | 51040 | | 83745 | SPICER | DWAIN | 8/1/2016 | 8/1/2016 | 50000 | | 83745 | SPICER | DWAIN | 8/2/2016 | 8/2/2017 | 57700 | | 83745 | SPICER | DWAIN | 8/3/2017 | 8/1/2018 | 63470 | | 83745 | SPICER | DWAIN | 8/1/2018 | 8/1/2019 | 68570 | | 83745 | SPICER | DWAIN | 8/2/2019 | 7/31/2020 | 71980 | | 83745 | SPICER | DWAIN | 8/1/2020 | 8/1/2021 | 74100 | | 83745 | SPICER | DWAIN | 8/2/2021 | | 76820 | | 84039 | COLEMAN | HANNAH | 6/28/2018 | 6/27/2019 | 47380 | | 84039
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps

Blurred answer
Follow-up Questions
Read through expert solutions to related follow-up questions below.
Follow-up Question

You didn't join the employee database to get the employee number, last name or first name. Your solution doesn't work.

Solution
Bartleby Expert
SEE SOLUTION
Knowledge Booster
Single Table
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 System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education