Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Compute , comput by and Pivot clause

Author  Topic 

sital
Yak Posting Veteran

89 Posts

Posted - 2008-12-15 : 22:46:25
What is compute,compute by and pivot clause?

Also, what is the difference between Compute and Compute By clause?

Where can we use these clauses?

sodeep
Master Smack Fu Yak Hacker

7174 Posts

Posted - 2008-12-15 : 23:20:00
what Booksonline says? It comes with installation with SQL Server.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-15 : 23:23:34
compute, compute by are used to provided aggregated results from the query.
pivot clause is used for cross tabing results based on value of a field
see books online for more details

http://doc.ddart.net/mssql/sql70/sa-ses_3.htm


http://msdn.microsoft.com/en-us/library/ms177410.aspx
Go to Top of Page
   

- Advertisement -