MySQL Forums
Forum List  »  Stored Procedures

Re: equivalent for 'compute' in sql server
Posted by: ujvala ujvala
Date: November 07, 2005 05:21AM

Roland, ok i understood.
thanx for the suggestion. i had modified the query as :

CREATE PROCEDURE `pubs_dbo`.`reptq1` ()
select avg(price),pub_id, title_id, price, pubdate
from `pubs_dbo`.`titles`
where price is NOT NULL
group by pub_id
order by pub_id with rollup;

and it displays group-wise records only.

UJVALA

Options: ReplyQuote


Subject
Views
Written By
Posted
5387
November 04, 2005 06:16AM
Re: equivalent for 'compute' in sql server
2851
November 07, 2005 05:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.