Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery Troubles
Message
De
20/11/2014 18:59:43
 
 
À
20/11/2014 17:47:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01611202
Message ID:
01611266
Vues:
51
>vfp9

Give this a try.

It seems OK here but I have very limited test data.
SELECT a.vendno, b.item,b.lrecdte,v.company FROM icsupl01 a INNER JOIN   (SELECT  ITEM , MAX(LRECDTE) AS lrecdte  FROM  icsupl01 GROUP BY item) b
ON a.item = b.item AND a.lrecdte = b.lrecdte INNER JOIN apvend01 v ON a.vendno = v.vendno 
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform