April 23, 2008 at 2:49 pm
Hi,
Does anyone know whats the equivalent sqlserver syntax for the compute command?
This is in oracle..
SQL> break on title
SQL> compute sum of amt on title
SQL> select title,amt from shipping order by title;
THanks.
April 23, 2008 at 4:05 pm
GROUP BY .. WITH ROLLUP can usually get you there.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy