I
Ivan Debono
Hi all,
I need to create a query based on a master-details tables scenario, where a
record of the master table can have multiple details records.
For example:
Master Table has 3 records with just 1 field called id (values 1, 2 and 3)
Details table is like this
master_id id
1 10
2 10
2 20
2 30
3 20
3 20
I want to find out because master records have more than 1 detail record and
those detail records are the same.
From the above details table, master id 1 is not included because it has
just 1 details record. master id 2 has 3 details records but their ids are
different. Only master id 3 should be returned.
Thanks,
Ivan
I need to create a query based on a master-details tables scenario, where a
record of the master table can have multiple details records.
For example:
Master Table has 3 records with just 1 field called id (values 1, 2 and 3)
Details table is like this
master_id id
1 10
2 10
2 20
2 30
3 20
3 20
I want to find out because master records have more than 1 detail record and
those detail records are the same.
From the above details table, master id 1 is not included because it has
just 1 details record. master id 2 has 3 details records but their ids are
different. Only master id 3 should be returned.
Thanks,
Ivan