Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Views will not show deleted records
Message
 
À
15/07/2004 16:16:17
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00924761
Message ID:
00924914
Vues:
17
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform