Thanks for suggestion, where as i was trying to extend this but unable to find correct way.
All other code part being same, i am trying to modigy the delete condition.
Code:
spool ${DataDirectory}/query_output.txt
delete from table where TO_CHAR(date_column, 'MM/DD/YY') >= '$date' and TO_CHAR(date_column, 'MM/DD/YY') <= <Month end date>;
commit;
spool off
I want to loop it in such a way that date variable will take start date from list.txt file and then it needs to delete till month end date. Please suggest how to do this.