Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper syntax for creating sub-queries
Message
De
19/08/2008 18:32:52
 
 
À
31/07/2008 11:40:30
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:
01340234
Vues:
12
>As per you advice, I tried you code. It worked in a simple test. But the following code gave me a syntax error. Could you please look @ it and tell me where I am going wrong...
>
>
>CLOSE ALL
>DO PATH
>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, MAX(po_d.rcv_numb) AS PrimaryKey, 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 "
>
>lnRtnValue = SQLEXEC(gnC, lcSQL, "cPo_d")
>
>
I still had this one in pending. I see you got several replies to it. So, I assume all is ok now.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform