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