hi,
I don't know how to write an equivalent query in OrientDB to perform the logic as follows
1. SELECT distinct (product)
FROM Order order LEFT JOIN order.Lines line LEFT JOIN line.Product product
2. SELECT product, count(*)
FROM Order order LEFT JOIN order.Lines line LEFT JOIN line.Product product
GROUP BY product
3. SELECT product, sum(line.Qty * line.Price)
FROM Order order LEFT JOIN order.Lines line LEFT JOIN line.Product product
GROUP BY product
(In the samples above, I have used HQL instead of SQL)
Any help would be very appreciated!
Hung Tran