Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP SQL Limitations on subqueries
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01552653
Message ID:
01552655
Vues:
100
>VFP won't let you do this
>
>
>SELECT table1.pk1,
>		(select top 1 somecharfield from table2 where pk1=table1.pk1 order by pk2) as somecharfield 
>	from table1
>
>
>You get error message: Queries of this type are not supported
>
>
>Of course I can cheat with a prequery, but what's your best work around for this VFP limitation?

It's not clear to me what you're trying to do. Your subquery is not in a WHERE clause? Can you show us the whole statement?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform