Hi all
Is is possible to query a table multiple times?
In this example I have 2 tables members and talents.
+----------+-----------+
| mem_id | name |
+----------+-----------+
| 1 | Fred |
+----------+-----------+
| 2 | John |
+----------+-----------+
+----------+-----------+-----------+-----------+
| tal_id | mem_id | Talent | Value |
+----------+-----------+-----------+-----------+
| 1 | 1 |Dancing |Ballroom |
+----------+-----------+-----------+-----------+
| 2 | 1 |Music |Piano |
+----------+-----------+-----------+-----------+
| 3 | 1 |Singing |Cabaret |
+----------+-----------+-----------+-----------+
| 4 | 2 |Dancing |Ballet |
+----------+-----------+-----------+-----------+
| 5 | 2 |Singing |Cabaret |
+----------+-----------+-----------+-----------+
If I do a select query on (talent=dancing and value=Ballroom) or (talent=singing and value=Cabaret) i get both members. Is there a way to filter this query to return only mem_id 1?
Many thanks