Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By & Sum Clause Error in Select
Message
From
11/06/2003 14:49:36
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00799071
Message ID:
00799073
Views:
25
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
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform