[SQL] Related table question

Eric Forget forgete at cafederic.com
Sun Jan 18 03:31:00 CST 2004


>>           a.RecID not in (select ptr from keyword where name <> 'Me')
>> 
>> 
>> However, I see b) working without understanding it. For me it looks like a
>> double negation. Maybe there is something about SQL I don't understand.
> 
> This is query of kind:
> 
>   WHERE fld IN (v1, v2, v3)
> 
> Here you do not see problems?
> 
> In your query we use subselect to get LIST of values.
> 
>   WHERE fld IN (select ptr FROM T ... )

What I don't understand is why the double negation:

    a.RecID not in (select ptr from keyword where name <> 'Me')
            ^^^                                        ^^

Eric

___________________________________________________________________

 Eric Forget                       Cafederic
 ForgetE at cafederic.com             <http://www.cafederic.com/>

 Fingerprint <86D5 38F5 E1FD 5D9C 71C3  BAA3 797E 70A4 6210 C684>




More information about the Valentina mailing list