Taff
Registered User.
- Local time
- Today, 09:37
- Joined
- Feb 3, 2004
- Messages
- 158
Hi all,
Really unsure how to word this so I have attached a sample of what I am trying to do.
I have three tables:-
tblStudents -
Learn_ID
Provi_ID
Surname
Forename
tblSchemes -
Learn_ID
Provi_ID
Lprog_ID
Type_LPG
ElwaOffi
tblQuals -
Learn_ID
Provi_ID
Lprog_ID
Lacti_ID
StartDte
EEnddte
TermDate
What I am trying to do is create a query which shows the all the fields from Students table, Lprog_Id and Type_Lpg from the schemes table and Lacti_ID, Startdte, EEnddte and Termdate from the Quals table.
However I am trying to group the results by Learn_ID and Lprog_ID and only show the record with the maximum Termdate within each group.
Not sure if I've made myself clear but any help is greatly appreciated.
Many Thanks
Ant.
Really unsure how to word this so I have attached a sample of what I am trying to do.
I have three tables:-
tblStudents -
Learn_ID
Provi_ID
Surname
Forename
tblSchemes -
Learn_ID
Provi_ID
Lprog_ID
Type_LPG
ElwaOffi
tblQuals -
Learn_ID
Provi_ID
Lprog_ID
Lacti_ID
StartDte
EEnddte
TermDate
What I am trying to do is create a query which shows the all the fields from Students table, Lprog_Id and Type_Lpg from the schemes table and Lacti_ID, Startdte, EEnddte and Termdate from the Quals table.
However I am trying to group the results by Learn_ID and Lprog_ID and only show the record with the maximum Termdate within each group.
Not sure if I've made myself clear but any help is greatly appreciated.
Many Thanks
Ant.