T-SQL Query For Beginning And End of Any Month

T-SQL Query For Beginning And End of Any Month

Howto, Technology

I’ve used this technique many times to help grab the beginning and end of a month. It’s useful for queries where you need to use a BETWEEN.

Sample usage:

I hope this is helpful to you in your querying adventures. Got another way to accomplish the task? I’d love to hear from you. Post a comment below.