I want to filter my data in oracle database like this, I know this query is wrong is htere any other possible way to do this?
Currently i am trying to do like this.
SELECT apd.first_name,
apd.middle_name,
apd.last_name,
apd.first_thi_nme,
apd.middle_thi_nme,
apd.last_thi_nme
FROM applicant_detail apd
WHERE apd.application_number IN
( SELECT **apd.application_number,
apd.industry_type_cde**
FROM a_detail apd,
a_type apt
WHERE apt.application_number=apd.application_number
AND apt.identification_code=apd.identification_code
AND apt.guarantor_type='I' )
// I have to find recode on these two column base where both of them same them return unique or any other way to pass these apd.application_number,apd.industry_type_cde in IN clause or any other.
any idea how I can do this?
i am working with mysql and postgresql the below works fine on both i think it will work on oracle too