I have a table idm_track it has 3 combination dw_dealer_id, dw_program_id and dw_product_id I want to join this table with another table and another table which is ism_interaction also have these three dw_dealer_id, dw_program_id and dw_product_id, I was trying to write SQL like this
SELECT
dw_itrack_id
FROM
idm_itrack
WHERE
dw_dealer_id,
dw_product_id,
dw_program_type_id exists ( select
dw_dealer_id,
dw_product_id,
dw_program_type_id
FROM IDM_INTERACTION_DTL_AGG
Please advise.
Simply join will do,