Daniel Quathamer
3 weeks ago
4 changed files with 49 additions and 2 deletions
@ -0,0 +1,42 @@
@@ -0,0 +1,42 @@
|
||||
|
||||
--obsolete jobs: |
||||
|
||||
delete from etl_step |
||||
where tid in (select R.step_id |
||||
from etl_step_relation R, etl_job J |
||||
where R.job_id =J.tid |
||||
and J.uniquename in ('sx_select_mask', |
||||
'sx_insert_mask', |
||||
'kern_konstanten_update', |
||||
'sichten_unload', |
||||
'sos_gewichtung_unload') |
||||
and J.systeminfo_id=9); |
||||
|
||||
delete from etl_step_property |
||||
where etl_step_id in (select R.step_id |
||||
from etl_step_relation R, etl_job J |
||||
where R.job_id =J.tid |
||||
and J.uniquename in ('sx_select_mask', |
||||
'sx_insert_mask', |
||||
'kern_konstanten_update', |
||||
'sichten_unload', |
||||
'sos_gewichtung_unload') |
||||
and J.systeminfo_id=9); |
||||
|
||||
delete from etl_step_relation |
||||
where job_id in (select J.tid from etl_job J |
||||
where J.uniquename in ('sx_select_mask', |
||||
'sx_insert_mask', |
||||
'kern_konstanten_update', |
||||
'sichten_unload', |
||||
'sos_gewichtung_unload') |
||||
and J.systeminfo_id=9); |
||||
|
||||
delete from etl_job |
||||
where uniquename in ('sx_select_mask', |
||||
'sx_insert_mask', |
||||
'kern_konstanten_update', |
||||
'sichten_unload', |
||||
'sos_gewichtung_unload') |
||||
and systeminfo_id=9; |
||||
|
Loading…
Reference in new issue