Write a SQL Query to find first Week Day of month?

Answer Posted / vijay

SELECT DATENAME(dw, DATEADD(dd, – DATEPART(dd, GETDATE()) + 1, GETDATE())) AS FirstDay

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define right outer join in sql server joins?

729


What are the types of subquery?

735


Explain hostprotectionattribute in sql server 2005?

784


you have separate development and production systems you want to move a copy of a development database into production to do this, you do a backup on the development system and restore to the production system after a few minutes, you begin getting calls from several customers saying that they are denied access to the system why? : Sql server administration

713


What is the use of partition by in sql server?

666






What is the use of keyword with encryption. Create a store procedure with encryption?

743


Explain indexed views and partitioned view with their syntax.

893


How to name query output columns in ms sql server?

713


You have several tables, and they are joined together for querying. The tables contain both clustered indexes and non clustered indexes to optimize performance, how should you distribute the tables and their indexes onto different file groups?

741


How to recompile stored procedure at run time?

719


What triggers long term care?

712


What is the difference between getdate and sysdatetime?

718


Can we do dml on views?

727


What were the latest updates to SQL Azure service?

102


Explain what is the difference between union and union all?

742