Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper syntax for creating sub-queries
Message
 
 
À
31/07/2008 13:31:01
Raza Malik
Universal Accounting Software
Edgewater, New Jersey, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01334260
Message ID:
01335584
Vues:
22
No, there's nothing special about GROUP BY. The VFP ODBC does not support derived tables. It's VFP9 feature.
Consider using CursorAdapter with VFP OLE DB provider.

>
>Yes, I think that is the problem. I am using VFP9.0 GROUP BY syntax with old ODBC. Listed below is the code I was using:
>
>
>
>lcSql = "SELECT po_d.rcv_numb, po_d.por_numb, po_d.ven_numb, po_d.usr_code, cTemp.nRcv_totl ;
>		FROM (SELECT po_d.rcv_numb, SUM(po_d.por_txam + po_d.por_ntam) 
AS nRcv_totl FROM po_d GROUP BY po_d.rcv_numb) AS cTemp ;
>		INNER JOIN po_d ON cTemp.rcv_numb = po_d.rcv_numb ;
>		ORDER BY po_d.rcv_numb "
>
>=ExecuteSql(lcSQL, "cPo_d")
>
>
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform