TSQL first day of month

TSQL first day of month

If you need to get the first day of the month in TSQL. You can use the built-in DATEADD or DATEFROMPARTS function.
How to use if condition in TSQL?

How to use if condition in TSQL?

Learn how to use if condition in TSQL. The conditioning feature is used when you want to ensure only a specific or procedure to be executed if it meets the condition you specify.