MySQL Forums :: Stored Procedures :: Average

Advanced Search

Re: Average
Posted by: Peter Brawley ()
Date: November 26, 2012 05:30PM

Given a table named tbl with columns named arena,sold and capacity ...

Select arena, Avg(sold)/capacity as Average
from tbl
Group By arena;

What's the point of an sproc?

Options: ReplyQuote

Subject Views Written By Posted
Average 1557 myst way 11/26/2012 03:11PM
Re: Average 1031 Peter Brawley 11/26/2012 05:30PM
Re: Average 1090 myst way 11/26/2012 05:41PM
Re: Average 986 Peter Brawley 11/26/2012 08:00PM

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.