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 (Figure P7.31).

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
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 (Figure P7.31).
EMP NUM
EMP INAME
EMP FNAME
SAL FROM
SAL END
SAL AMOUNT
83731
VARGAS
SHERON
20140-15
2015a-14
43.00
VARSAS
SHERON
2015014
2016--13
481.00
83731
VARGAS
SHERON
2016 04
201714
4.00
VARGAS
SHERON
20170715
NUL
S1040.00
SPICER
DWAN
201102
2012-0-01
83745
SPICER
2012 0-2
2013-0-02
S7700.00
DWAN
3745
SCER
DWAN
2013 o
2014-08-01
63470.00
SPICER
DWAN
2014 08-02
2015-08-01
se.00
SPICER
DWAN
2015O1
2010--31
71.00
SPICER
DWAN
2016 O01
2017-08-01
7414.00
Figure P7.31
In the SQL Query do the following
Select clause: Display the columns specified above in the problem statement from
LGEMPLOYEE and LGSALARY_HISTORY tables
From: Since we are displaying the information from these two tables specify the join
condition here or in the where clause
Where clause: Only displaying information for employees that emp_num equal to
83731, 83745, and 84039. You can use IN operator here
Order by clause: Please sort as per the sorting criteria listed in the problem statement.
Transcribed Image Text: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 (Figure P7.31). EMP NUM EMP INAME EMP FNAME SAL FROM SAL END SAL AMOUNT 83731 VARGAS SHERON 20140-15 2015a-14 43.00 VARSAS SHERON 2015014 2016--13 481.00 83731 VARGAS SHERON 2016 04 201714 4.00 VARGAS SHERON 20170715 NUL S1040.00 SPICER DWAN 201102 2012-0-01 83745 SPICER 2012 0-2 2013-0-02 S7700.00 DWAN 3745 SCER DWAN 2013 o 2014-08-01 63470.00 SPICER DWAN 2014 08-02 2015-08-01 se.00 SPICER DWAN 2015O1 2010--31 71.00 SPICER DWAN 2016 O01 2017-08-01 7414.00 Figure P7.31 In the SQL Query do the following Select clause: Display the columns specified above in the problem statement from LGEMPLOYEE and LGSALARY_HISTORY tables From: Since we are displaying the information from these two tables specify the join condition here or in the where clause Where clause: Only displaying information for employees that emp_num equal to 83731, 83745, and 84039. You can use IN operator here Order by clause: Please sort as per the sorting criteria listed in the problem statement.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY