Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing Deleted() in sql
Message
From
30/10/1998 16:21:01
 
 
To
30/10/1998 15:58:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00153034
Message ID:
00153048
Views:
25
>If I have tag DELTAG() with expression DELETED() and try to reference it in SQL, my optimization gets affected. How do I use it correctly?
>
>SELECT anyfield;
>FROM T1, T2;
>WHERE T1.field = T2.field;
>
>Shows full optimization for both tables with SYS(3054)
>If I try to use:
>
>SELECT anyfield;
>FROM T1, T2;
>WHERE T1.field = T2.field;
>AND NOT DELETED();
>
>my optimization gets cut back to partial for T1 but remains full for T2. I have the DELTAG in both tables using the same expression.

Don't include DELETED() in Select. Instead SET DELETED ON. VFP will take care of rest.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform