Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Correlated subquery thanks
Message
From
22/03/2021 07:14:56
 
 
To
19/03/2021 16:54:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01679124
Message ID:
01679219
Views:
51
>Thanks all for the help - particularly Tamar for writing the paper

You're welcome.

>
>   WHERE PartFile.FileLocked = .T. AND ;
>      PartFile.NeverPurge = .F. AND ;
>      NOT EMPTY(PartFile.Folder_ID) AND ;
>      NOT EMPTY(PartFile.Stru_Amt) AND NOT EMPTY(PartFile.Date_Fund) AND ;
>      NOT EMPTY(PartFile.Date_Closd) AND PartFile.Date_Closd < ldCutOffDate AND ;
>      EMPTY(PartFile.Archv_Date) AND PartFile.Archv_Type # "P" AND ;
>      NOT ( Plaintif.EstateFile = .T. AND EMPTY(Plaintif.EstateClsd) ) AND ;
>
For logical fields, I'm partial to just using the field name (for .T.) or NOT the fieldname (for .F.). That's true for me everywhere, not just in SQL. While there's no speed difference, I find I'm really likely to misread (logicalfield = .F.) and I'll never misread (NOT logicalfield). I also feel strongly about using NOT rather than !, because it's too easy to miss the exclamation point.

Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform