Home Forums SQL Server 2012 SQL Server 2012 - T-SQL Ranking using 2 columns in T-SQL 2012 RE: Ranking using 2 columns in T-SQL 2012
David Burrows
SSC Guru
Points: 65138
More actions
May 27, 2014 at 9:37 am
#1716738
Why not use MIN
SELECT AccountName,MIN(INVOICE_DATE) AS [INVOICE_DATE]
FROM
GROUP BY AccountName
Far away is close at hand in the images of elsewhere.Anon.