Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Views will not show deleted records
Message
 
To
15/07/2004 16:16:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00924761
Message ID:
00924914
Views:
16
>I am quite certain that this will NOT work, because the query engine will do the equivalent of USE (TABLE) AGAIN.

Doh! Of course your right. You'd need to leave off the alias in the DELETED(). And I'm still not sure what would happen in the JOIN or HAVING, but I don't think I'd count on predictable results. The correct answer is, as you said, to first pull the deleted records into a cursor with a single-table select and then JOIN that.

BTW, the other reason this solution is a good idea is that -- assuming the deleted records are a small subset of the total -- it'll usually be faster.
Previous
Reply
Map
View

Click here to load this message in the networking platform