Question: using the data in the ASSIGNMENT table, write the SQL code that will yield the total number of hours worked for each employee and the
using the data in the ASSIGNMENT table, write the SQL code that will yield the total number of hours worked for each employee and the total charges stemming from those hours worked, sorted by employee number. The results of running that query are shown in Figure P7.6.
EMP_NUM EMP_LNAME SumOfASSIGN_HOURS Sum OfASSIGN_CHARGE 101 News 3.1 387.50 103 Arbough 19.7 1664.65 104 Ramoras 11.9 1218.70 105 Johnson 12.5 1382.50 108 Washington 8.3 840.15 113 Joenbrood 3.8 192.85 115 Bawangi 12.5 1276.75 117 Williamson 18.8 649.54 EMP_NUM EMP_LNAME SumOfASSIGN_HOURS Sum OfASSIGN_CHARGE 101 News 3.1 387.50 103 Arbough 19.7 1664.65 104 Ramoras 11.9 1218.70 105 Johnson 12.5 1382.50 108 Washington 8.3 840.15 113 Joenbrood 3.8 192.85 115 Bawangi 12.5 1276.75 117 Williamson 18.8 649.54Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
