MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
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  
Old March 28th, 2004, 09:53 PM
eca00cdy eca00cdy is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 1 eca00cdy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
php/mysql - simple math problem

I'm not good enough with mysql to figure this out.
I have a table :

Name - (varchar)
Result 1 - Decimal
Result 2 - Decimal
Country - (varchar)

What I want is a php script that calculates the averages of result 1 and result 2 respectivly for each country and
enters them into the database in 2 more columns. for example

NAME R1 R2 Country AvR1 AvR2
Jim 3.21 4.13 USA 1.76 3.12
Zak 2.12 2.11 UK 2.62 ..etc
Boo 3.11 1.02 UK 2.62 .
Josh 0.32 2.12 USA 1.76 3.12

Im not clever enough to figure it out tbh.
Any ideas?

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > php/mysql - simple math problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway