I get this error “Cannot call methods on int” when I try and execute the following sql statement in MVS datasource querybuilder.
SELECT
item_k.ItemID,
item_k.Name AS Expr1,
SUM(item_k.Price) AS TotalPrice
FROM
item_k
INNER JOIN orderitems_k ON item_k.ItemID = orderitems_k.ItemID
GROUP BY
item_k.Name
what seems to be the issue here?
thank you
Well, the first thing I can see is that you probably need to group by
item_k.ItemID, and use comma (not period) to separate items in theSELECTclause (you haveitem_k.ItemID.item_k.Name:I wonder if the query shouldn’t involve
orderitems_kat some point too, though (hard to tell without your schema…)