I have two tables, the first one has 4 columns like:
ID NAME COUNTRY FILTERID
and the second one has 2 columns like:
ID COUNTRY
I want to use this query:
SELECT F.Name
FROM First as F, Second AS S
WHERE F.Filterid = S.S_Id
AND F.Country = S.Country
S.Country contains Japan,Usa, but F.Country have only Japan.
Please suggest solution.
You can use JOINS if you are using sql
For e.g.
Select * from table_one as one
INNER JOIN(you must know the different joins purposes before using joining the tables for reference here)
table_two as two
ON one.some_value_of_column_in_table_one = two.some_value_of_column_in_table_two
Thanks.