Consider the two following tables. In bold the field name. Below the field name, the field content:
tableA :
group
ops side west
ops north area
commando alpha
backUp
admin
tableB :
groups
ops
commando
What I would like is to make an inner join like query. I tried the following in phpMyAdmin but it is not working:
SELECT tableA.group
FROM tableA
INNER JOIN tableB
ON tableA.group LIKE "'tableB.groups'%"
GROUP BY tableA.group
The expected result would be to have:
ops side west
ops north area
commando alpha
Hope someone can help. Thank you in advance. Cheers. Marc.
1 Answer