Table:
id | c1 | c2
-------------
1 | 10 | 20
2 | 55 | 20
3 | 30 | 30
4 | 11 | 80
5 | 12 | 20
and query
select (sum(c1)+sum(c2))as sum from mytable where sum > 100 ??
the above generates an error as sum not part of the table. any work around to limit / where condition to restrict result returned to be only upon this condition of two columns sum ? (with out the need to add a third column to the table)
Thank you