ROLLUP
๊ธฐ๋ณธ ๋ฌธ๋ฒ
SELECT
select_list
FROM
table_name
GROUP BY
c1, c2, c3 WITH ROLLUP;SELECT
orderYear,
productLine,
SUM(orderValue) totalOrderValue
FROM
sales
GROUP BY
orderYear,
productline
WITH ROLLUP;GROUP์กฐ๊ฑด์ด ์ฌ๋ฌ๊ฐ ์ผ๋
orderYear
productLine
totalOrderValue
GROUPING()
๋ฌธ๋ฒ ์์
orderYear
productLine
totalOrderValue
GROUPING(orderYear)
GROUPING(orderYear)
orderYear
productLine
totalOrderValue
Last updated