Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 getting datename

Author  Topic 

born2acheive
Yak Posting Veteran

65 Posts

Posted - 2007-01-08 : 00:27:43
i have a table names as dt which consists of dates for example there are 10 date records in my table, i want to find the name of that all 10 dates.


i used this:
Select DateName(weekday,'2007-01-08')
this gives monday, so i have 10 dates , i need to find the day of 10 dtes at a time
can any one please give me the query.

jezemine
Master Smack Fu Yak Hacker

2886 Posts

Posted - 2007-01-08 : 00:37:47
select datename(weekday, myColumn) from myTable

?


www.elsasoft.org
Go to Top of Page

born2acheive
Yak Posting Veteran

65 Posts

Posted - 2007-01-08 : 01:01:36
thank you jezemine very nuch
Go to Top of Page
   

- Advertisement -