Jump to content

Query Tables


RSprinkel

Recommended Posts

Hi all,

I have a situation and the details are listed below.


I have a scoring database that keeps track of scores for a racing league.  The tables that I need to query to put on a standings page are Division, Drivers, and Score(which tracks all the races for all divisions and drivers.  What I need is to be able to query these tables broken down into divisions and list each driver per division with their total standings.  As it stands the Score table only list the drivers by their driver ID which is a number.  So it would basically have to cross reference the ID in the Score table with the Driver table to get the drivers name.  Then the points from each race has to be totalled for all drivers per division.  Then the information queried goes into a standings table.

For example:

Pro Division
Driver Name     Total Points
John Doe             1180

Any help with this would be MUCH APPRECIATED.

Thanks Much in Advance.
Link to comment
https://forums.phpfreaks.com/topic/31334-query-tables/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.