Find first and last day of current month in sql server
Answer / Mohd Yameen
To find the first and last day of the current month in SQL Server, you can use EOMONTH function:nn```sqlnSELECT EOMONTH(GETDATE()) + 1 AS LastDayOfMonth,n EOMONTH(GETDATE()) + 1 - DATEPART(DAY, GETDATE()) AS FirstDayOfMonth;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Can you explain what is the use of custom fields in report?
How to reaname table name without using sp_Rename in sql server..?
What is your recommendation for a query running very slow? : sql server database administration
How to drop an existing schema in ms sql server?
Delete duplicate rows without using rowid.
What do you mean by recursive stored procedure?
What are the differences between left join and inner join in sql server?
How to get the definition of a view out of the sql server?
What is difference between process and thread? Explain lazy writer funcationality.
What is the template in sql?
What are clustered and non-clustered index?
Can we create a clustered index on composite primary key.
Oracle (3253)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)