Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Group By & Sum Clause Error in Select
Message
 
À
11/06/2003 14:49:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00799071
Message ID:
00799074
Vues:
27
No same thing.
-Mark

>Have you tried (it still may not work because of sum of multiplied fields?):
>
>
>SELECT invoice.nInvoiceNumber, invoice.dInvoiceDate,
>SUM(invoicedetail.nQuantity*invoicedetail.nUnitPrice) AS nTotal
>FROM Invoice, InvoiceDetail
>WHERE Invoice.nID = InvoiceDetail.nParentID
>GROUP BY nInvoiceNumber, dInvoiceDate Order BY nInvoiceNumber
>
>
>>What is wrong???????? I know I can bypass the problem with the SET ENGINEBEHAVIOUR 70, but I would really like to know what the correct syntax should be.
>>
>>TIA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform