Substring type query

aqif

Registered User.
Local time
Today, 12:56
Joined
Jul 9, 2001
Messages
158
Hi
smile.gif


I've got a query which gives me output like:

Stage CountofStage
1a 5
1b 3
2a 6
2b 4
3a 2

Instead of this I want an output in a grouping manner like

Stage CountofStage
1 8 (5+3)
2 10
3 2

i think that maybe Substring fuction will work..but dont know how to...n one thing is that Stage will never be greater than 9 like u'll never have a stage like 10a

Cheers!
Aqif
 

Users who are viewing this thread

Back
Top Bottom