T
tsluu
tblName
NameID Name
1 Mr A
2 Mr B
3 Mr C
tblTran
TranID NameID Date
1 1 01/01/2009
2 1 02/02/2009
3 2 01/01/2009
4 2 02/01/2009
5 2 03/01/2009
Result:
Name Date
Mr A 02/02/2009
Mr B 03/01/2009
Mr C
Can anyone help with the SQL query to give the above results. Is it
possible? I want all names in tblName and those with corresponding records
from tblTran, only the latest dates.
NameID Name
1 Mr A
2 Mr B
3 Mr C
tblTran
TranID NameID Date
1 1 01/01/2009
2 1 02/02/2009
3 2 01/01/2009
4 2 02/01/2009
5 2 03/01/2009
Result:
Name Date
Mr A 02/02/2009
Mr B 03/01/2009
Mr C
Can anyone help with the SQL query to give the above results. Is it
possible? I want all names in tblName and those with corresponding records
from tblTran, only the latest dates.