Looks like you are not using MS SQL Server. SQLTeam is on MS SQL Server. For other try asking at dbforums.comAnyway the query below is for MS SQL Server. select account.name, max(callnotes.date_held)from account inner join callnotes on account.account_no = callnotes.account_nowhere callnotes.status = 'Held'and callnotes.date_held < DATEADD(DAY, -10, GETDATE())group by account.nameORDER BY account.name ASC
KH[spoiler]Time is always against us[/spoiler]