I have a problem compare 2 set of data with and without leading zero.
In the Inventory_NBP, there is as 000000000000909120.
However, in PDM_Analysis, there exist only 909120 without the leading zero.
The current query below failed to retrieve any 000000000000909120 or 909120 as the “IN” condition is not met.
How do i modify the query below to fulfill my requirement?
sel * FROM Inventory_NBP.v_dmnd_rsrv_dpnd_rqr_mrp
WHERE plnt_id ='WA01'
and mtrl_id in('G29329-001', '000000000000909120', '13-0006-001')
and
(mtrl_id, plnt_id)
IN
( SELECT itm_cd, sap_plnt_cd
FROM PDM_Analysis.v_itm_plnt_extn
)
Do casting. This may solve your problem. Please check.