sql - First day of the next month -


i'm trying results displays orderdates before last day of current month. i'm guessing this...

select orderdate orders orderdate < (code first day of next month?) 

first day of next month:

sql-server 2012+

dateadd(d, 1, eomonth(current_timestamp)) 

sql-server 2008 , older:

dateadd(m, datediff(m, -1, current_timestamp), 0) 

Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -