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
7/15/2018 7/14/2019
7/14/2019 7/13/2020
7/14/2020 7/14/2021
7/15/2021
8/2/2015 8/1/2016
8/2/2016 8/2/2017
8/3/2017
8/1/2018
83731 VARGAS
83731 VARGAS
83731 VARGAS
83731 VARGAS
83745 SPICER
83745 SPICER
83745 SPICER
83745 SPICER
83745 SPICER
83745 SPICER
83745 SPICER
84039 COLEMAN
84039 COLEMAN
84039 COLEMAN
84039 COLEMAN
Details
SHERON
SHERON
SHERON
SHERON
DWAIN
DWAIN
DWAIN
DWAIN
DWAIN
DWAIN
DWAIN
HANNAH
HANNAH
HANNAH
HANNAH
8/2/2018 8/1/2019
8/1/2019 7/31/2020
8/1/2020 8/1/2021
8/2/2021
6/28/2018 6/27/2019
6/27/2019 6/26/2020
6/27/2020 6/27/2021
6/28/2021
43740
48110
49550
51040
56020
57700
63470
68550
71980
74140
76360
47380
51170
52700
54280
Transcribed Image Text:Figure P7.31 Salary History for Selected Employees EMP_NUM EMP_LNAME EMP_FNAME SAL_FROM SAL_END SAL_AMOUNT 7/15/2018 7/14/2019 7/14/2019 7/13/2020 7/14/2020 7/14/2021 7/15/2021 8/2/2015 8/1/2016 8/2/2016 8/2/2017 8/3/2017 8/1/2018 83731 VARGAS 83731 VARGAS 83731 VARGAS 83731 VARGAS 83745 SPICER 83745 SPICER 83745 SPICER 83745 SPICER 83745 SPICER 83745 SPICER 83745 SPICER 84039 COLEMAN 84039 COLEMAN 84039 COLEMAN 84039 COLEMAN Details SHERON SHERON SHERON SHERON DWAIN DWAIN DWAIN DWAIN DWAIN DWAIN DWAIN HANNAH HANNAH HANNAH HANNAH 8/2/2018 8/1/2019 8/1/2019 7/31/2020 8/1/2020 8/1/2021 8/2/2021 6/28/2018 6/27/2019 6/27/2019 6/26/2020 6/27/2020 6/27/2021 6/28/2021 43740 48110 49550 51040 56020 57700 63470 68550 71980 74140 76360 47380 51170 52700 54280
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.
Similar questions
  • SEE MORE QUESTIONS
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