Hi ,
i have a query . In that left join is costing more and its showing 8 min in plan.
One of the joining column is highly skewed with a single value.
can anybody suggest how can i make that join work fast.
SELECT
COL1,
COL2,
TRIM(COL3) COL3 ,
FROM TABLE A
LEFT JOIN
(
SELECT
COL1 ,
COL2,
CAST(COL3 AS VARCHAR(50)) COL3,
FROM TABLE B
) SALES_ORDER_CSCC
ON TABLE A .COL3 = TABLE B.COL3
TABLE A.COL3 is skewed with 'UNKNOWN'
Thanks,
Suresh.
↧