Forum: MySQL Jun 24th, 2009 |
| Replies: 10 Views: 4,680 Hello Tesu,
I found the answer. i have used alias name in the subquery.
Thank You.
Regards
Selva |
Forum: MySQL Jun 24th, 2009 |
| Replies: 10 Views: 4,680 Hello Tesu,
This is really helpful for my requirement. I am using the query
select id, mill_rate, mill_rate+coalesce((select sum(mill_rate)
from mdata b where b.id < a.id ),0) as sumMill
... |