I
Ivan Debono
Hi all,
I have a master table and a details table.
Both tables have fields (id, name)
I need a query to list id & names from the master table where the details
records are equal. For example:
Master
id name
1 A
2 B
3 C
Details
id master_id name
1 1 A1
2 1 A2
3 2 B1
4 2 A2
5 2 A1
6 3 A1
7 3 A2
The query should return master records A & C (or at least just A or C)
because they have the same details.
Is it possible to achieve this?
Thanks,
Ivan
I have a master table and a details table.
Both tables have fields (id, name)
I need a query to list id & names from the master table where the details
records are equal. For example:
Master
id name
1 A
2 B
3 C
Details
id master_id name
1 1 A1
2 1 A2
3 2 B1
4 2 A2
5 2 A1
6 3 A1
7 3 A2
The query should return master records A & C (or at least just A or C)
because they have the same details.
Is it possible to achieve this?
Thanks,
Ivan