0
Excel Image Reference我有這條SQL語句顯示按部門的審批區域以及返回的工作流審批或拒絕次數。我目前的聲明如下,以及它目前正在製作的內容,接下來是我希望它看起來如何。它與團隊有關,並且按順序排列,但我無法弄清楚如何改變順序以達到我的願望。任何幫助表示讚賞。我附上了一張圖片來展示當前的結果與慾望的結果。按組排序/排序按
SELECT DECODE(SUBSTR(P.DESCR,1,18),'Chartfield Signers','Chartfield Signers',P.DESCR), DECODE(U.EOAWSTEP_STATUS,'A','Approval','Denial'), COUNT(U.EOAWSTEP_INSTANCE), TO_CHAR(AVG(
EXTRACT(DAY FROM (U.EOAWDTTM_MODIFIED - U.DTTM_CREATED) DAY TO SECOND) +
(EXTRACT(HOUR FROM (U.EOAWDTTM_MODIFIED - U.DTTM_CREATED) DAY TO SECOND)/24) +
(EXTRACT(MINUTE FROM (U.EOAWDTTM_MODIFIED - U.DTTM_CREATED) DAY TO SECOND)/(60*24)) +
(EXTRACT(SECOND FROM (U.EOAWDTTM_MODIFIED - U.DTTM_CREATED) DAY TO SECOND)/(60*60*24))),'999.99') "DURATION IN DAYS"
FROM PS_EOAW_STEPINST S , PS_EOAW_STEP P , PS_MDA_EPAF_WFXREF T , PS_EOAW_USERINST U
WHERE T.EOAWPRCS_ID LIKE 'MDA_EPAF%'
AND T.EOAWTHREAD_ID = S.EOAWTHREAD_ID
AND T.EOAWPRCS_ID = S.EOAWPRCS_ID
AND S.EOAWSTEP_INSTANCE = U.EOAWSTEP_INSTANCE
AND U.EOAWSTEP_STATUS IN ('A','D')
AND P.EOAWPRCS_ID = S.EOAWPRCS_ID
AND P.EOAWDEFN_ID = S.EOAWDEFN_ID
AND P.EFFDT = S.EFFDT
AND U.DTTM_CREATED between to_date(:d1, 'dd-mon-yy')
and to_date(:d2, 'dd-mon-yy')
AND P.EOAWSTAGE_NBR = S.EOAWSTAGE_NBR
AND P.EOAWPATH_ID = S.EOAWPATH_ID
AND P.EOAWSTEP_NBR = S.EOAWSTEP_NBR
GROUP BY DECODE(SUBSTR(P.DESCR,1,18),'Chartfield Signers','Chartfield Signers',P.DESCR),DECODE(U.EOAWSTEP_STATUS,'A','Approval','Denial')
ORDER BY DECODE(SUBSTR(P.DESCR,1,18),'Chartfield Signers','Chartfield Signers',P.DESCR),DECODE(U.EOAWSTEP_STATUS,'A','Approval','Denial');
我看到的代碼,但沒有圖像。是否說你沒有足夠的聲望發佈圖片? –
最初的3個單詞「Excel圖像參考」是圖片 –