MySQL Forums
Forum List  »  Stored Procedures

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
1923
November 26, 2012 03:11PM
Re: Average
1234
November 26, 2012 05:30PM
1318
November 26, 2012 05:41PM
1196
November 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.