Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not in statement
Message
From
03/03/2004 15:20:54
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00882687
Message ID:
00882871
Views:
17
The third example provides the same result as when I check the files manually for the correct existance of the record (or not) and the correct values.

Thanks for looking at this!
Tracy

>Tracy:
>
>I haven't tried this, but what if you do this to the first query--see the new NOT added:
>
>
>SELECT cn_name, cn_port, cn_printer FROM lcontrol ;
>  WHERE !EMPTY(lcontrol.cn_name) .and. NOT (lcontrol.cn_name IN ;
>  (SELECT ctrlname FROM ctrlset WHERE ctrlset.printform = .T.));
>  INTO TABLE (hdir+"tTEMPLCONTROL.DBF")
>
>
>Then applying DeMorgan's Theorem we get:
>
>
>SELECT cn_name, cn_port, cn_printer FROM lcontrol ;
>  WHERE !EMPTY(lcontrol.cn_name) .and. NOT lcontrol.cn_name IN ;
>  (SELECT ctrlname FROM ctrlset WHERE ctrlset.printform = .F.);
>  INTO TABLE (hdir+"tTEMPLCONTROL.DBF")
>
>
>And does this make a difference?
>
>
>SELECT cn_name, cn_port, cn_printer FROM lcontrol ;
>  WHERE !EMPTY(lcontrol.cn_name) .and. lcontrol.cn_name NOT IN ;
>  (SELECT ctrlname FROM ctrlset WHERE ctrlset.printform = .F.);
>  INTO TABLE (hdir+"tTEMPLCONTROL.DBF")
>
>
>It's worth a shot to try it and see what happens, because I'm curious too.
>
>HTH,
>
>--Paul
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Reply
Map
View

Click here to load this message in the networking platform