I have two tables in my SQL Server database. The first is bidder_interest_name
and second is tender_type_subcat
. There have multiple value column bidder_interest_subcategory
in bidder_interest_name
and tender_type_subcategory
in tender_type_subcat
tables.
Now I want to select the multiple values from both the tables for a particular subcategory and need to both table minimum matching value.
This is what I'm doing
What I have tried:
SELECT bi.bidder_interest_subcategory,tt.tender_type_subcategory
FROM bidder_interest_list as bi,new_tender_two as tt
WHERE bi.bidder_id=$bidder_id