Hi there,
I've got a query which returns a result set like this:
ColA ColB ColC ColD
A1 B1 C1 D1
A1 B1 C2 D2
A1 B1 C3 D3
A2 B2 C4 D4
ie, multiple values of cols C & D for a value of A & B (which are 1 to 1). I want a result set of the form:
ColA ColB ColC ColD
A1 B1 C1 D1
C2 D2
C3 D3
A2 B2 C4 D4
ie, removal of the duplicate values of Cols A & B. Can anyone help? I've tried tricky combinations of UNION etc...
T.I.A,
GAM
I've got a query which returns a result set like this:
ColA ColB ColC ColD
A1 B1 C1 D1
A1 B1 C2 D2
A1 B1 C3 D3
A2 B2 C4 D4
ie, multiple values of cols C & D for a value of A & B (which are 1 to 1). I want a result set of the form:
ColA ColB ColC ColD
A1 B1 C1 D1
C2 D2
C3 D3
A2 B2 C4 D4
ie, removal of the duplicate values of Cols A & B. Can anyone help? I've tried tricky combinations of UNION etc...
T.I.A,
GAM