Question : Date Display in Descending Order?

How can I get output that looks like this (only one per day and in descending order)
10/01/10 - Friday
09/27/10 - Monday
12/01/09 - Tuesday
11/01/09 - Sunday
etc

from a table that has DateTime field
10/1/2010
10/1/2010
10/1/2010
09/27/20
12/01/09
12/01/09
12/01/09
11/01/09
11/01/09
11/01/09

Answer : Date Display in Descending Order?

Jess31,

With respect, that sort of detail can be vital, and you really ought to have mentioned that in the original question.

No worries, just keep that in mind next time :)
1:
2:
3:
4:
SELECT MIN(CONVERT(varchar, MyDateTime, 1) + ' - ' + DATENAME(dw, MyDateTime)) AS DateLiteral
FROM SomeTable
GROUP BY CONVERT(datetime, CONVERT(varchar, MyDateTime, 102))
ORDER BY CONVERT(datetime, CONVERT(varchar, MyDateTime, 102)) DESC
Random Solutions  
  •  Restoring MSSQL 2000 databases to MSSQL 2005
  •  How can I create a signature capture in iPhone SDK?
  •  Sync Center and Moving Redirected Folder in SBS2008
  •  stop error oxoooooo7b(OxF78D2524,OxC0000034 will not load XP setup!!!!!!!
  •  Remote Web Workplace different website address
  •  Desktop Dating Site - criminal activity - given new web privacy laws for such as Facebook
  •  Zebra LP 2844 label printer prints the first print job successfully, subsequent print jobs after skip labels and/or print partial data on labels until computer is rebooted.
  •  How to compress a string into a short representation in ASP.NET using C# or VB.NET?
  •  asp.net: How to determine if a when a user login. is an Admin Account, * the menu is selected to show admin pages  & reports.
  •  MySQL daemon acts differently at boot time
  •  
    programming4us programming4us