﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2012 / SQL Server 2012 -  T-SQL  / COMPUTE Clause problem / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 03:38:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: COMPUTE Clause problem</title><link>http://www.sqlservercentral.com/Forums/Topic1431382-3077-1.aspx</link><description>We're in a 2012 Forum so I'll assume SQL 2012. Support for COMPUTE was dropped from SQL Server 2012 and is not available under any compatibility mode. Use ROLLUP instead.[url]http://technet.microsoft.com/en-us/library/ms144262.aspx[/url]</description><pubDate>Fri, 15 Mar 2013 19:57:08 GMT</pubDate><dc:creator>opc.three</dc:creator></item><item><title>RE: COMPUTE Clause problem</title><link>http://www.sqlservercentral.com/Forums/Topic1431382-3077-1.aspx</link><description>[quote][b]ChrisM@Work (3/15/2013)[/b][hr]What version of SQL Server are you connected to?[/quote]And what compatibility level is set for the database?</description><pubDate>Fri, 15 Mar 2013 07:00:07 GMT</pubDate><dc:creator>HowardW</dc:creator></item><item><title>RE: COMPUTE Clause problem</title><link>http://www.sqlservercentral.com/Forums/Topic1431382-3077-1.aspx</link><description>What version of SQL Server are you connected to?</description><pubDate>Fri, 15 Mar 2013 03:27:34 GMT</pubDate><dc:creator>ChrisM@Work</dc:creator></item><item><title>COMPUTE Clause problem</title><link>http://www.sqlservercentral.com/Forums/Topic1431382-3077-1.aspx</link><description>HI [code="sql"]SELECT SalesOrderID, UnitPrice, UnitPriceDiscountFROM Sales.SalesOrderDetailWHERE  SalesOrderID = 43659ORDER BY SalesOrderIDCOMPUTE SUM(UnitPrice), SUM(UnitPriceDiscount) BY SalesOrderID;[/code]Above query is giving below error [quote]Incorrect syntax near the keyword 'COMPUTE'.[/quote]</description><pubDate>Fri, 15 Mar 2013 01:21:16 GMT</pubDate><dc:creator>Bhuvnesh</dc:creator></item></channel></rss>