I have two columns - code (nvchar) and date (datetime) within an sql 2005 table.
The code contains a list where the items are duplicated and I need to search for each item for the newest date and if the date is older than 180 days to display that record. Was relatively easy using the Last function but this does not exist now.
Any help would be appreciated. TIA