You can always go external right to
sql using Connection con = new Connection(); Statement sqlStmt
= Con.createStatement(); ResultSet sqlTable; Str
sqlStr; sqlStr
= <your select statement> sqlTable
= sqlStmt.executeQuery(sqlSTR); while
(sqlTable.next()){
set1.add(sqlTable.getInt(1)); //or whatever you need } Don -----Original Message----- Hi
there! Can
i use the ORDER BY and the GROUP BY Clause in one SQL Statement? In
SQL92 it would look like this:
SELECT SUM(QTY) AS Qty, SUM(LINEAMOUNT) AS Amount,
ITEMID So i
tried it in Axapta:
while select sum(Qty), sum(LineAmount) from custInvoiceTrans group by ItemId
order by sum(LineAmount) desc But
the compiler raises a Syntax Error :-( Has
anybody an idea? Regards, Werner. Yahoo! Groups Links
|
- [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