I have some tables.
These tables all have one column in common called 'classified_id':
main_table: cars_table:
id (PK) => 4222 id (PK) => 1021
classified_id => 25 classified_id => 25
Now, I want whenever a search is performed, to compare if any of the main_table.classified_id matches any of the cars_table.classified_id (in this case).
the cars_table may return no matches! the classified_id in every table is the only relation. I would never need to compare the cars_table.classified_id to main_table.classified_id, but the other way around is what I need (main_table.classified_id=cars_table.classified_id).
I don't know what type of Join to use... Any help? Left Join?
Thanks