chris-uk-lad
Registered User.
- Local time
- Today, 14:26
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
I know how to get the max date per ID with:
However, how can i retrieve all columns within the table based only on the max date? I know, by including all the tables column headings, it will ignore the group by thus give me unwanted records.
Many Thanks
I know how to get the max date per ID with:
Code:
select max(DDATE) from Table1 where ID in ('AA1', 'AA2', 'AA3', 'AA4')
group by ID
However, how can i retrieve all columns within the table based only on the max date? I know, by including all the tables column headings, it will ignore the group by thus give me unwanted records.
Many Thanks