hi to all
I have a table like this...
The PK is Type & Rank. SubType is either 1 or 2 (ASC). x holds single-character string values.
I want to GROUP BY Type and SubType. I want the aggregate field to show the CONCATENATED x values in the order shown.
Here's what the output should look like...
I have a table like this...
The PK is Type & Rank. SubType is either 1 or 2 (ASC). x holds single-character string values.
Code:
Type Rank SubType x
=================================
100 1 1 2
100 2 1 4
100 3 2 3
100 4 2 5
100 5 2 X
101 1 1 2
101 2 2 q
101 3 2 w
102 1 2 m
102 2 2 5
102 3 2 a
etc...
I want to GROUP BY Type and SubType. I want the aggregate field to show the CONCATENATED x values in the order shown.
Here's what the output should look like...
Code:
Type SubType SerialNum
=============================
100 1 24
100 2 35x
101 1 2
101 2 qw
102 2 m5a
etc...
[/code[
I can't figure out howto do the concatenation. Thanks in advance for any help!