Click here to Skip to main content
15,910,358 members

Comments by Elldubzz (Top 2 by date)

Elldubzz 31-Jul-22 3:01am View    
also, a correction, the table name is Person.Details not Person.Address.
Elldubzz 31-Jul-22 2:59am View    
As I am totallY hopeless at sql please could you help me with the actual code. I've tried the following but there is an issue with the syntax:
SELECT MAX([Effective Date] AS MaxAddressDate
FROM [Person].[Details]
GROUP BY [Person Number]
ORDER BY [Person Number] DESC

OR

SELECT MAX (Effective Date) AS 'Max Date'
FROM Person.[Details]
GROUP BY [Person Number]
ORDER BY [Person Number] DESC