[SQL] Related table question

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Jan 20 19:48:19 CST 2004


on 1/18/04 8:20 PM, Eric Forget at forgete at cafederic.com wrote:

> 14)
>   a.RecID in (select ptr from keyword where name = 'Me')
> OR
>   a.RecID in (select ptr from keyword where name = 'YOU')
> 
>   Result:     CalcID      Label
>               1           2
> 
> Instead of:     CalcID      Label
>               1           2
>               2           3


select A.calcId, A.label
from a
where 
    a.RecID in (select ptr from keyword where name = 'Me' OR name = 'YOU' )



-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list