The problem i'm facing I have not come across on Google or don't know what it's called, so instead of explaining what i'm trying to do, showing you is a lot better.
I have a table that calculates hours for a specific activity.
What I want to do is group by the activity, BUT display the type on different columns like so (Wanted Output):
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
I have a table that calculates hours for a specific activity.
Code:
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):
Code:
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
Comment