G
Guest
I have two tables to join. T1 has the header type information and T2 has the
detail, hence the one to many. Now I want to join the two tables in a query
and return only the entries in T1 where any one record in its detail in T2
contains a zero value:
T1 T2
----- -----
entry1 Detail1 is >0
entry1 Detail2 is >0 (I don't want entry1)
entry2 Detail1 is >0
entry2 Detail2 is >0
entry2 Detail3 is =0 ( I want entry2)
How do I do that?
detail, hence the one to many. Now I want to join the two tables in a query
and return only the entries in T1 where any one record in its detail in T2
contains a zero value:
T1 T2
----- -----
entry1 Detail1 is >0
entry1 Detail2 is >0 (I don't want entry1)
entry2 Detail1 is >0
entry2 Detail2 is >0
entry2 Detail3 is =0 ( I want entry2)
How do I do that?