Write a SQL Query to find first Week Day of month?
Answers were Sorted based on User's Feedback
Answer / saravakumar
SELECT DATENAME(dw, DATEADD(dd, - DATEPART(dd, GETDATE()) +
1, GETDATE())) AS FirstDay
Is This Answer Correct ? | 31 Yes | 2 No |
Answer / vijay
SELECT DATENAME(dw, DATEADD(dd, – DATEPART(dd, GETDATE()) + 1, GETDATE())) AS FirstDay
Is This Answer Correct ? | 1 Yes | 1 No |
What is a field name?
What is the difference between SSAS 2000 and SSAS 2005?
What is the difference between substr and charindex in the sql server?
In what version of sql server were synonyms released?
In which tcp/ip port does sql server run? Can it be changed?
How to change the ownership of a schema in ms sql server?
Tell me what are the essential components of sql server service broker?
what are the new features of sql server 2005?
8 Answers HP, Keane India Ltd,
How can you list all the columns in a database?
sql server has its default date format in da form "yy-mm-dd" its possible to convert da current date format of sql server to desired format. Now my question is dat how to get da previous and comin days date in my desired format??
What are the purpose of Normalisation?
what's the difference between SQL & MY-SQl...? And what we learn from these ....?