M
mscertified
I have a table with a date/time field. I need to get the top 10 distinct
dates (ignoring time portion). I tried:
SELECT DISTINCT TOP 10 Format(RecordDate,'MM/DD/YYYY') AS RecDate
FROM tblAddress
ORDER BY Format(RecordDate,'MM/DD/YYYY') DESC;
but it gave me all the same dates.
How do I do it?
dates (ignoring time portion). I tried:
SELECT DISTINCT TOP 10 Format(RecordDate,'MM/DD/YYYY') AS RecDate
FROM tblAddress
ORDER BY Format(RecordDate,'MM/DD/YYYY') DESC;
but it gave me all the same dates.
How do I do it?