Skip navigation links

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 905 myst way 11/26/2012 03:11PM
Re: Average 655 Peter Brawley 11/26/2012 05:30PM
Re: Average 659 myst way 11/26/2012 05:41PM
Re: Average 623 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.