|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
average of a column of INT's
Hey guys, I'll start by saying I'm very new to mySQL. In fact, everything I know I've learned by doing in the last week or so. Anyways, I have a table (rating), and in that table there are two columns (id, and rate). I've got everything stored fine in there, now I need a way to average the rate column and post the average.
In the rate column are numbers 1-10, so the average would be a simple 8.5 or something. Anyways, if anyone can help me, it would be really appreciated. I'm kind of stuck here |
|
#2
|
||||
|
||||
|
Try this: http://www.w3schools.com/sql/func_avg.asp
Also, the mySQL documentation is quite good from memory. |
![]() |
| Viewing: Dev Articles Community Forums > Databases > MySQL Development > average of a column of INT's |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|