This is a discussion on "Division" within the Databases section. This forum, and the thread "Division are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Division
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
||||
|
||||
|
Division
I am working on a system that rates articles.
It has a colum called Rating, and one called Times Rated. Rating is the total of all the ratings put together. So if an article is rated with the scores: 4 4 1 2 4 Rating = 15 Times Rated is the number of times it has been rated, so using the example above that would be 5. I can then work out the actual rating by doing Rating/Times Rated = 3. If I wanted to rank articles using this, how would I do it? Can I literally do:
Cheers, Jack
__________________
Jack Franklin - Webforumz Moderator (x)HTML | CSS | PHP | MySQL | JQuery (Javascript) Contact: My Blog | Twitter | Delicious Want Lessons? PM me. If you think I've helped, please press the 'Thanks' Button.
Last Blog Entry: A Week with VBulletin (Aug 28th, 2008)
|
|
|
![]() |
| Tags |
| mysql, query |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Division alignment problem | Craigj1303 | Web Page Design | 0 | Apr 3rd, 2008 14:29 |
| Image bAckground of a division | ahm531 | Web Page Design | 3 | Aug 31st, 2006 15:54 |