Subject | Re: [firebird-support] Master-Detail query help, please... :) |
---|---|
Author | Ivan C Cruz |
Post date | 2005-09-29T04:35:51Z |
Greg At ACD escreveu:
simple that:
SELECT M.*
FROM TableMaster M
WHERE Exists ( SELECT *
FROM TableChild C
WHERE M.MID = C.MID
AND C.SomeValue IN (A, B) )
Ivan.
>First try:I'm not completely sure but, I believe what you want is
>
>SELECT M.*
>FROM TableMaster M
> INNER JOIN TableChild C ON M.MID = C.MID
>WHERE C.SomeValue IN (A, B)
>
>
>
simple that:
SELECT M.*
FROM TableMaster M
WHERE Exists ( SELECT *
FROM TableChild C
WHERE M.MID = C.MID
AND C.SomeValue IN (A, B) )
Ivan.