Language:EN
Pages: 2
Rating : ⭐⭐⭐⭐⭐
Price: $10.99
Page 1 Preview
sum from employees implicit sorting using the unio

Sum from employees implicit sorting using the union operator

412 Chapter 9: Using the Set Operators

FIGURE 9-7

SELECT department_id dept, NULL mgr, sum(salary) FROM employees
GROUP BY department_id
UNION
SELECT NULL, manager_id, sum(salary)
FROM employees
GROUP BY manager_id
UNION
SELECT NULL, NULL, sum(salary)
FROM employees;

FIGURE 9-8

You are viewing 1/3rd of the document.Purchase the document to get full access instantly

Immediately available after payment
Both online and downloadable
No strings attached
How It Works
Login account
Login Your Account
Place in cart
Add to Cart
send in the money
Make payment
Document download
Download File
img

Uploaded by : Kathleen Rogers

PageId: DOCC7CF8BD