SQL Server 프로 시저에서 created_date
과 같은 입력 매개 변수가 하나 있습니다.월 - 월 범위의 끝 날짜를 찾는 SQL Server
작성 날짜를 기준으로 해당 월의 첫 번째 날짜와 마지막 날짜를 찾아야합니다.
For example,
CREATED_DATE이 12-08-2016
경우,
start_date should be '01-08-2016'
end_date should be '31-08-2016'
CREATED_DATE가 15-06-2016
start_date should be '01-06-2016 00:00:00'
end_date should be '30-06-2016 23:59:59'
사용 구글 : https://sqlandme.com/2011/05/ 16/how-to-get-first-of-a-month-tsql/ –
은 아래 URL에서 답변을 얻었습니다. http://stackoverflow.com/questions/16277504/what-is-the-equivalent oracles-last-day-function-in-sql-server-2008 – Srinivasan