I have two selects which access different tables but should return the same values since they should contain the same part numbers. I'm looking for a way to compare these values and just received a yes or no if they match. Here are the selects.
select st1p_parts.ref_code from st1p,st1p_parts where st1p.code = st1p_parts.st1_code and st1p.car_code='105072';
select st1e_parts.ref_code from st1e,st1e_parts where st1e.code = st1e_parts.st1_code and st1e.car_code='105072';
I would also like to have it automatically search all matching car_code s so that I don't have to do each one manually. This is in Oracle.
Any suggestions?
select st1p_parts.ref_code from st1p,st1p_parts where st1p.code = st1p_parts.st1_code and st1p.car_code='105072';
select st1e_parts.ref_code from st1e,st1e_parts where st1e.code = st1e_parts.st1_code and st1e.car_code='105072';
I would also like to have it automatically search all matching car_code s so that I don't have to do each one manually. This is in Oracle.
Any suggestions?