Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery
Message
De
10/08/2016 02:52:34
 
 
À
10/08/2016 02:41:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01639295
Message ID:
01639297
Vues:
69
Tariq, here's your immediate problem.

When you query from a subquery, you need to provide it with an alias at the end.

Here's a very simple example. The following won't work and will give you the same error that you're receiving:

select * from (select * from Purchasing.Vendor)

However, if you give it a table alias at the end...

select * from (select * from Purchasing.Vendor) TableAlias

Then it will work.

Now - after you verify that it solved your problem, I'd like to talk about the rest of your query. Even if it runs without an error, there are some potential problems down the road.

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform