I have an SQL script that updates columns in a table. I’d like to schedule this to run every hour. What are the steps to set this up in Toad?
I have Toad expert v12.12.0.39
Thanks
Below is the SQL:
UPDATE OBJ_REL_TRANSACTION SET STATUS = 3 WHERE OBJRELTRANID IN
(
select to_number(transaction_id) from
(
select t.taskid ETL_task_id, t.name etl,
OBJRELTRANID transaction_id
from task t
join task_pset p on p.taskid = t.taskid
join OBJ_REL_TRANSACTION obj on obj.srcid = t.srcid
where tasktypeid = 300
and etlmodid = 148
and insertts > trunc(sysdate)
and status = -1
and rowcount <=10
order by rowcount asc
)
)