Dear All,
/********************************************************************
Use this SQL Query to get a pipeline summary.
This SQL query will get the pipeline summary runtime for pipelinerunseq input
`Yogananda Muthaiah
*********************************************************************/
--- Oracle ----
SELECT PE.NAME PERIOD_NAME,PU.NAME PU,ST.NAME STAGE,ST.DESCRIPTION,SS.STARTTIME,SS.STOPTIME,TRUNC((SS.STOPTIME-SS.STARTTIME)*24*60) DIFF_IN_MINS,
SS.STATUS,NUMERRORS,NUMWARNINGS
FROM CS_PLRUN PR, CS_STAGESUMMARY SS, CS_STAGETYPE ST,CS_PROCESSINGUNIT PU,CS_PERIOD PE
WHERE PR.PIPELINERUNSEQ = SS.PIPELINERUNSEQ
AND SS.STAGETYPESEQ = ST.STAGETYPESEQ
AND PR.PROCESSINGUNITSEQ=PU.PROCESSINGUNITSEQ
AND PE.REMOVEDATE>SYSDATE
AND PE.PERIODSEQ=PR.PERIODSEQ
AND PR.PIPELINERUNSEQ= XXXXXXXXXXXXXX ---- Pipelinerunseq
ORDER BY SS.STARTTIME ASC
---- HANA ----
SELECT PE.NAME PERIOD_NAME,PU.NAME PU,ST.NAME STAGE,ST.DESCRIPTION,SS.STARTTIME,SS.STOPTIME,SECONDS_BETWEEN(SS.STOPTIME,SS.STARTTIME) / 60 DIFF_IN_MINS,
SS.STATUS,NUMERRORS,NUMWARNINGS
FROM CS_PLRUN PR, CS_STAGESUMMARY SS, CS_STAGETYPE ST,CS_PROCESSINGUNIT PU,CS_PERIOD PE
WHERE PR.PIPELINERUNSEQ = SS.PIPELINERUNSEQ
AND SS.STAGETYPESEQ = ST.STAGETYPESEQ
AND PR.PROCESSINGUNITSEQ=PU.PROCESSINGUNITSEQ
AND PE.REMOVEDATE>TO_DATE('2200-01-01', 'YYYY-MM-DD')
AND PE.PERIODSEQ=PR.PERIODSEQ
AND PR.PIPELINERUNSEQ= 20547673299878223 ---- Pipelinerunseq
ORDER BY SS.STARTTIME ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
9 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
1 | |
1 |