I’ve two tables.
users:
uid | city | username | flag |
10 | New York | john | 1 |
14 | Tokyo | kawasaki | 1 |
15 | Tokyo | coder | 1 |
groupmember:
id | uid | groupid |
1 | 10 | 16 |
2 | 14 | 16 |
3 | 15 | 21 |
The 'uid' in both the tables are the same.
I want to select all users who are in city “tokyo” who are also in the group with groupid “16” .
So the query resutl should be (in this case)
14 | Tokyo | kawasaki | 1 |
1 Answer