How to get the first day and the last day for the current year in DB2 in format YYYYMMDD?
I tried:
SELECT SUBSTR(CHAR(CURRENT DATE),8,0)||'0101'
And:
SELECT SUBSTR(CHAR(CURRENT DATE),8,0)||'1231
But it does not work till I put the year, but I need the year to be a parameter "not need to change it every year in the Query"