L
Lyndon
Hi all,
I have a table of data and want to SUM() a column of values but based
on the values in another column:
Val1 Val2
1 2
2 3
4 5
6 7
Can I Sum Val1 based on grouping Val2 into buckets of <> 4 so the
result is:
Expr001
3
10
SELECT Sum(Val1)
FROM mytable
GROUP BY Val2
HAVING what goes here..?
Thanks,
Lyndon.
I have a table of data and want to SUM() a column of values but based
on the values in another column:
Val1 Val2
1 2
2 3
4 5
6 7
Can I Sum Val1 based on grouping Val2 into buckets of <> 4 so the
result is:
Expr001
3
10
SELECT Sum(Val1)
FROM mytable
GROUP BY Val2
HAVING what goes here..?
Thanks,
Lyndon.