Hi Werner:
The sintax of the first SQL Statement is good, a
SQL Server Query, but in Axapta you can't use at where sintax like custInvoiceTrans.InvoiceDate == str2date('20040107',
321), you only can use Table fields like
Custtable.Accountnum = Custtrans.Accountnum by example. You can't
use functions in where statement. Instead you should use something
like:
while select
sum(Qty), sum(LineAmount), InvoiceDate from custInvoiceTrans group by
ItemId order by sum(LineAmount)
desc
{ If
(custInvoiceTrans.InvoiceDate == str2date('20040107',
321)
{ print custInvoiceTrans.itemId, ', ', custInvoiceTrans.Qty, ', ', custInvoiceTrans.LineAmount; } }
|
- [development-axapta] Query with ORDER BY and GROUP ... Werner Briedl
- RE: [development-axapta] Query with ORDER BY a... Ing. Gonzalo Bastos S.
- RE: [development-axapta] Query with ORDER BY a... Don Price
- RE: [development-axapta] Query with ORDER BY a... Don Price
- RE: [development-axapta] Query with ORDER BY a... Pieter Wijnen
- RE: [development-axapta] Query with ORDER BY a... Malcolm Burtt