Hello All,
Below query is running fine, but resulting in a Very High CPU Usage. Culprit may be the CASE statement.
As per explain plan, this query is "Left Outer joined using Product Join". How come that be avoided to make the CPU Usage Lower?
SELECT
ALL_WCS1.ORDER_NBR
, MAX(kcon_ord_dt.kcon_ord_ts) ORDER_DT
FROM
(
SELECT DISTINCT ORDER_NBR, SUB_ORD_ID
FROM TEMP_TABLE_1
) X
LEFT JOIN
↧