Home Forums SQL Server 2014 Development - SQL Server 2014 Data Analysis RE: Data Analysis
drew.allen
SSC Guru
Points: 76944
More actions
February 9, 2018 at 2:18 pm
#1979309
Use a CTE with a ROW_NUMBER() to return only those records with a ROW_NUMBER() = 1.
Since you haven't provided sample data to work with, I can't provide you tested code.
Drew
J. Drew AllenBusiness Intelligence AnalystPhiladelphia, PA