“Compute” & “Compute By” Clauses are Discontinued in SQL Server 2012

As mentioned on MSDN that both “ComputeCompute By” clauses were used for data summarizing, are discontinued in SQL Server 2012.

The last version that supports these discontinued (Compute and Compute By) clauses so far is SQL Server 2008 R2.

The alternate solution is to use the RollUp operator for data summarizing.

Unlike the two discontinued clauses (Compute and Compute By) the RollUp operator is allowed to be used inside the “View” T-SQL.

Download my tutorials to see some demos on the RollUp operator and Compute & Compute By clauses.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s