Quote:
|
I am getting an error from the sql I have written.
|
What error did you got?
One poosibility might be that you didn't distinguish t1 from main select and t1 inside sub-select.
If so, try to specify correlation-name, like...
select t1.item, t2.price, t3.col1, t4.col1,
(select sum(
t1s.item * t2.price) from t1
AS t1s
where
t1s.itemID <= t2.itemID) as summary,
from .....
goup by
t1.item, t2.price, t3.col1, t4.col1