Not sure how to ask this question, so I ask by giving scenario.
Select ID, CompanyID, Company_name from memberdetails where status in ('A','S');
the query returns say 1000 rows. Now I want to search the table industry_catagory with the result under column CompanyID from above. How can I create this is one single sql statement.
CompanyIDso you can use it for the second query?Jointo the two tables together on CompanyId.