Current Code:
WHERE EXTRACT(YEAR_MONTH FROM timestamp_field) = EXTRACT(YEAR_MONTH FROM now())")
Instead of EXTRACT(YEAR_MONTH FROM now())
, I want EXTRACT(YEAR FROM now())
, but I want to hard code the month in. How do I go about concatenating the extract results with the MM month, for example 09.
I tried a few options below, with no luck.
(EXTRACT(YEAR FROM now())09)
CONCAT(EXTRACT(YEAR FROM now()), 09)
'EXTRACT(YEAR FROM now())' + '09'