column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80; SET PAGESIZE 100; SET PAGES 100; SET VERIFY OFF; set termout off; SET HEADING ON; set trimspool on; set timing off; SET HEADS ON; set FEEDBACK OFF; SET UNDERLINE =; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS'; COLUMN NAME FORMAT A16; COLUMN CREATED_DATE FORMAT A23; COLUMN TRANSACTION_STATUS FORMAT A21; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; --SET MARKUP HTML ON ENTMAP ON SPOOL ON PREFORMAT OFF ; SPOOL H:\Sprints\Regression_Scripts_Repeated\Daily_Reports\Refund_Reversal_count s_on_&file_time..html ttitle center 'DD Refund Reversal Report ' skip 2 COMPUTE SUM LABEL TOTAL OF total_created ON REPORT; --COMPUTE SUM LABEL GRAND_TOTAL OF processed ON REPORT; --BREAK ON START_TIME ON END_TIME SKIP 1 ON NAME ON REPORT SKIP 2; COLUMN NAME FORMAT A11; drop table SRC_PAY_REV purge; commit; CREATE TABLE SRC_PAY_REV COMPRESS NOLOGGING PARALLEL(DEGREE 8) AS SELECT * FROM SIEBEL.S_SRC_PAYMENT where created>sysdate-15 and pay_cat_cd in ('Refund','Reversal'); commit; select wf.*, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.created between wf.START_TIME and wf.END_TIME) as total_created, (select count(*) from SRC_PAY_REV pay where pay_cat_cd in ('Refund','Reversal') and pay.last_upd between wf.START_TIME and wf.END_TIME) as processed from wf_monitor wf WhERE TRUNC(START_time)>=TRUNC(SYSDATE) and trunc(end_time)<t runc(sysdate+1) order by 1 ,2; SPOOL OFF; EXIT; SET SILENT ON; SET PAGESIZE 150; column tm new_value file_time noprint select to_char(sysdate, 'DDMMYYYY') tm from dual ; SET MARKUP HTML ON SPOOL ON - HEAD '<title>DD Refund Reversal Report</title> - <style type="text/css"> - table { background: #fff; font-size: 100%; width: 70%; margin-right:auto; mar gin-left:16px; } - th { background: #ADD8E6; } - td { padding: 0px; } - CENTER { color:blue } - </style>' SET LINESIZE 80;