I have a table that calculates hours for a specific activity.
Expand|Select|Wrap|Line Numbers
- activity---------type------------hours
- AB123 NORMAL 8.3
- AB123 BREAK 0.4
- AB123 NORMAL 4.5
- CD456 NORMAL 3.7
- CD456 BREAK 2.1
What I want to do is group by the activity, BUT display the type on different columns like so (Wanted Output):
Expand|Select|Wrap|Line Numbers
- Activity break total
- AB123 0.4 13.2
- CD456 2.1 5.8
The break is the sum of ALL TYPE = BREAK, while total is just SUM of all hours regardless of type.
Is this even possible without procedures?
Brain-locked here guys, appreciate any eye-openers,
Cheers,
Dan