Hello everyone,
I am using adventure data base and the following code
SELECT Color, Size,AVG(ListPrice)AS AvgPrice, GROUPING(Size)AS IsRollupFROMProduction.ProductGROUPBYcube(Color, Size)
but unfortunately I get this error(please help me)
Msg 10707, Level 15, State 1, Line 5
The CUBE() and ROLLUP() grouping constructs are not allowed in the current compatibility mode. They are only allowed in 100 mode or higher.