Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Subquery with Deleted() does not work?
Message
From
15/09/2009 09:47:07
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01424502
Message ID:
01424514
Views:
29
>Hi Matt,
>
>Functions without alias refer to the main table of the query (or an arbitrary one, if there are multiple tables involved). You would need to pass the alias name to DELETED(), which is impossible, as VFP uses random aliases within a SELECT statement. DELETED("csrTempJobItems") would not refer to the table on which the query is performed and would therefore return the same value for every record.

Thanks to you all. At least you have confirmed that I am not crazy and the result I got was common.

Now I know how to work around this.

VFP community is the best!
Previous
Reply
Map
View

Click here to load this message in the networking platform