I have over 1000 lines of sql query, in every few line I need to change the year. So, Im thinking if there is a way to set up a year in the beging of the sql query that I can change only one time instead of going through the entire code to make the changes. I am trying to a build sql query where I can assign a variable like this.
a in (2022,2023)
select * from transaction_table
where Year_col in a
I know that it can be done in t-sql but not sure about Oracle sql.
Your assistance is greatly appreciated.