Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax help with a subquery
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01173944
Message ID:
01173962
Vues:
12
>Thanks for the fast reply! Unfortunately, Foxpro returns with "Queries of this type are not supported" :-(

This should work
SELECT pt.*, ct.b_Name ;
	FROM ParentTable pt ;
	JOIN ChildTable ct ON pt.a_pk = ct.b_afk ;
		WHERE b_area = (SELECT MAX(b_area) FROM ChildTable WHERE b_afk = ct.b_afk)
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform