This is the code I'm trying to use
From orders as o, o.items as it
Group by o.orderno
Select o.orderno, Max(it.price) OVER (PARTITION BY it.itemno ORDER BY o.orderno) as MaxPrice;
But SQL++ returns an error which states:
Cannot resolve alias reference for undefined identifier it (in line 3, at column 23)
I'm trying to figure out if both GROUP BY and a window function can be used in the same query.