Question: SELECT e . empname, COUNT ( * ) AS 'Days Exceeding Average' FROM slsemp e JOIN ( SELECT empID, SalesDate, SUM ( Qty ) AS
SELECT eempname, COUNT AS 'Days Exceeding Average'
FROM slsemp e
JOIN
SELECT empID, SalesDate, SUMQty AS 'Total Quantity'
FROM slstrasx
GROUP BY empID, SalesDate
t ON eempID tempID
JOIN
SELECT AVGQty AS 'Avg Quantity'
FROM slstranx
a
WHERE t'Total Quantity' a'Avg Quantity'
GROUP BY eempname;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
