Query & SQL ReferenceSQL SyntaxSELECTROLLUPROLLUP keywordCopy as MarkdownArrow down iconSee GROUPING SETS, ROLLUP, and CUBE.