Hi i am new to this SQL stuff, as before have been able to the simple things in MS Access design view.
But i am having troubles acheiving what i need.
The situation is i have a database for horse racing stats.
There is a few tables, the ones that are related to this are
1. raceList - has raceId, date ... - a list of races
2. raceStarters - raceId, horseId ... - a list of horses in each race
3. previousForm - horseId, date etc...
what i want to be able to do is have a query that for a particular raceId, will display the last 5 previousForm records (sorted by date DESC), for each horseId, in that raceId.
Hope this is clear and someone can help...
Thanks,
Blocka