I need to append rows to a table on daily basis, but delete all current month rows. The rows being appended have a year and month columns, and I also have an Excel file imported that has year and month. Is there a way to write a PreSQL statement that would only delete the current month? As in:
delete from TABLE where Y = <GIVEN YEAR> and M = <GIVEN MONTH>
I do have another process that uses a Text Box as a runtime user input, and I am able to do the following:
delete from TABLE where Y = %Question.Year% and M = %Question.Month%
And that works great, but I'm not sure how I can reference it otherwise...