Hi i need a query for the follwing
My Table has
Grp Comp Vt
===== ===== ===
G1 C1 V1
G1 C2 V2
G1 C1 V3
G2 C1 V4
G2 C2 V1
The result of the query shold be..
G1 2 3
G2 2 2
Actually it should return Group by grp
First Val = Grp
Second val=Unique Comp
Third Val=Count of Vt
My Table has
Grp Comp Vt
===== ===== ===
G1 C1 V1
G1 C2 V2
G1 C1 V3
G2 C1 V4
G2 C2 V1
The result of the query shold be..
G1 2 3
G2 2 2
Actually it should return Group by grp
First Val = Grp
Second val=Unique Comp
Third Val=Count of Vt
Comment