This question is locked. New answers and comments are not allowed.
Hello,
I have a problem on executing a OQL-Statement with Group By clause. I could reproduce this behavior with FirstStep model.
Executing of query: SELECT x, SUM(y.quantity) FROM OrderExtent x, x.details y GROUP BY x
throws following exceptions:
Error executing query: Telerik.OpenAccess.RT.sql.SQLException: Incorrect syntax near the keyword 'AS'.
SQL:
SELECT a.[ordr_id] AS COL1, SUM(c.[quantity]) AS EXPR2 FROM [ordr] a JOIN [ordr_order_detail] AS b ON (a.[ordr_id] = b.[ordr_id]) JOIN [order_detail] AS c ON (b.[order_detail_id] = c.[order_detail_id]) GROUP BY a.[ordr_id] AS COL1
Generated sql statement is not correct. The 'AS COL1' after 'GROUP BY' seems to be not allowed.
Markus
I have a problem on executing a OQL-Statement with Group By clause. I could reproduce this behavior with FirstStep model.
Executing of query: SELECT x, SUM(y.quantity) FROM OrderExtent x, x.details y GROUP BY x
throws following exceptions:
Error executing query: Telerik.OpenAccess.RT.sql.SQLException: Incorrect syntax near the keyword 'AS'.
SQL:
SELECT a.[ordr_id] AS COL1, SUM(c.[quantity]) AS EXPR2 FROM [ordr] a JOIN [ordr_order_detail] AS b ON (a.[ordr_id] = b.[ordr_id]) JOIN [order_detail] AS c ON (b.[order_detail_id] = c.[order_detail_id]) GROUP BY a.[ordr_id] AS COL1
Generated sql statement is not correct. The 'AS COL1' after 'GROUP BY' seems to be not allowed.
Markus