Trying to automate a query that will pull data for the current month where the day of the month (in the date field) is >= the 15th. Is this possible? If so, what is the syntax t
If your date/time fields are of type timestamp you can do
select x from
where EXTRACT(DAY from ) >=15
and EXTRACT(MONTH from ) = EXTRACT(MONTH FROM CURRENT_TIMESTAMP)
and EXTRACT(YEAR from ) = EXTRACT(YEAR FROM CURRENT_TIMESTAMP);