Comparing Dates in rows/records

K

Keenan

Hi

Wondering how I can work out the number of days between games for a sport
fixture with 16 teams, 20 rounds. example below:

Table example:
G - Rnd - Game Date - Team
1 - 1 - 1-Jan-09 - Black
2 - 1 - 2-Jan-09 - Yellow
3 - 2 - 8-Jan-09 - Yellow
4 - 2 - 9-Jan-09 - Black
etc, etc, etc

Query example: to show all games for team Black:
Rnd - Game Date - Team - days between last game
1 - 1-Jan-09 - Black - 0
2 - 9-Jan-09 - Black - 8
3 - 15-Jan-09 - Black - 6
4 - 22-Jan-09 - Black - 7
etc, etc

Hope I have given you enough information. If I should set up the
tables/queries differently let me know.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top