Hi
I have a problem joining two tables:
table1
id name
1 aaa
2 bbb
3 ccc
table2
id table1_id name
1 1 x1
2 1 x2
3 2 s1
table1
is the main table, table2
contains attributes.
I need to join and search both tables, but display distinct results from first table.
When using JOIN
I get multiple results from table2
.
The scenario is I need to search main table TABLE1 and ALL ATTRIBUTES in TABLE2 and return if found