Current location: Hot Scripts Forums » Programming Languages » PHP » MySql Query - Max of Run times grouped by Runner


MySql Query - Max of Run times grouped by Runner

Reply
  #1 (permalink)  
Old 03-04-05, 10:44 AM
CutAndPaste's Avatar
CutAndPaste CutAndPaste is offline
Newbie Coder
 
Join Date: Mar 2005
Location: London, UK
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Question MySql Query - Max of Run times grouped by Runner

I'm a complete newbie to editing PHP so don't take anything for granted...

I'm currently using DaDaBik as a front end to a MySql database on my Running Club Website to display Results of a Monthly Time Trial Race
This works fine as a way of getting basic data entry and reporting.

However, what I'm wanting to do (and can't do from within DaDaBik) is to create another page that lists the fastest time for each Runner (sorted fastest to slowest) so that we can show a listing of each person's fastest times. DaDaBik allows me to show all the sorted times, but if a Runner has say two faster times than the next fastest, they get listed twice before the next runer.

To further complicate matters, ideally I'd like to seperate the runners into male and female!

Tables:
Table_Runners
RunnerID (as PK)
RunnerName
RunnerGender

Table_Events
EventID (asPK)
EventName
EventDate

Table_Times
TimeID (as PK)
Runners_RunnerID (as FK)
Events_EventID (as FK)
RunTime

Can anyone point me in the right direction. I've done some MS Access query design but this is all new territory!

Many thanks,
Simon

Last edited by CutAndPaste; 03-04-05 at 10:47 AM.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MYSQL Distinct Query problem FunkyM PHP 20 02-28-07 08:33 AM
MySQL SELECT query result dividing ICE Flame PHP 1 06-06-04 02:50 PM
PHP:search by MySQL query lowdog PHP 0 02-15-04 10:04 AM
Declared Functions skipper23 PHP 4 12-17-03 10:06 AM
index page not showing up skipper23 PHP 3 12-15-03 01:10 PM


All times are GMT -5. The time now is 05:34 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.