Quantcast
Channel: ฟอรัม Getting started with SQL Server
Viewing all articles
Browse latest Browse all 8428

problem with grouping

$
0
0

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.

 


Viewing all articles
Browse latest Browse all 8428

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>