in my table Date store with seconds like 26-06-2014 09:24:25
i want to select duplicate values order by [Date] it takes seconds portion also but i need to select duplicates order by [Date] without seconds part
my current code is
WITH x AS (SELECT *, rn = row_number() OVER (PARTITION BY Date, Product,ExpiryDate ORDER BY Date)FROM Eod) Select * FROM x WHERE rn > 1
if i have two Dates like 26-06-2014 09:24:25 & 26-06-2014 09:24:30 then i need any one of two records but it shows nothing by taking seconds prt also.I want to ignore seconds part to show a record