|
Dave -
change it to:
select weeknum, (sum(unit)) from
vuservweek where costcent = 30 group by weeknum
Your "WHERE clause" is on the original data in
vuservweek - NOT on the results AFTER the grouping. If you wanted a value
after the grouping, then you would use HAVING - example: HAVING
(sum(unit)) > 100 would give you only those records, AFTER the grouping,
where the sum of the units is > 100.
Sami
|
- Error help David Ebert
- Re: Error help Bob Simms
- Re: Error help David Ebert
- Sami Aaron
