I basically want to reuse an input to save the user from inputting same thing again..
Here's how the query looks like:
select * from table
where bb.bbn_from_dttm >= TO_DATE('&Bill_Date_ddmmyyyy','dd-mm-yyyy')
and bb.bbn_to_dttm <= LAST_DAY('&Bill_Date_ddmmyyyy');
I don't want the user inputting this twice and getting the value from the first input would give me the date range I need.
This is SQL Oracle.
Any clues?
'&&Bill_Date_ddmmyyyy'at both the places in your code. --select * from table where bb.bbn_from_dttm >= TO_DATE('&&Bill_Date_ddmmyyyy','dd-mm-yyyy') and bb.bbn_to_dttm <= LAST_DAY('&&Bill_Date_ddmmyyyy');bb.bbn_to_dttm between date'&&Bill_Date_yyyy_mm_dd' and date'&&Bill_Date_yyyy_mm_dd'without less, greater and equal signs, and entering the value as2019-07-04(conforming to ISO standard) is enough whenever prompted.