thg
May 4th, 2006, 09:55 PM
Hello, thanks in advance for your help / comments
I have 2 tables:
SampleInfo contains 2 columns: SampleID & SampleName
Analysis contains 2 columns: SampleID & Elements
I link these 2 tables, get the SampleName & Elements out by the code:
SELECT SampleInfo.SampleName, Analysis.Elements
FROM SampleInfo INNER JOIN Analysis ON (SampleInfo.SampleID = Analysis.SampleID)
It would display
SampleName | Elements
A | a
A | b
A | c
A | f
B | a
B | g
B | l
C | c
C | s
C | o
C | m
C | n
I need to display the report as following:
SampleName | Elements
A | a, b, c, f
B | a, g, l
C | c, s, o, m, n
QUESTION: is it possible? If it is, how should I do this?
FYI, I use CR10 & SQLServer 2000 database
Regards,
t
I have 2 tables:
SampleInfo contains 2 columns: SampleID & SampleName
Analysis contains 2 columns: SampleID & Elements
I link these 2 tables, get the SampleName & Elements out by the code:
SELECT SampleInfo.SampleName, Analysis.Elements
FROM SampleInfo INNER JOIN Analysis ON (SampleInfo.SampleID = Analysis.SampleID)
It would display
SampleName | Elements
A | a
A | b
A | c
A | f
B | a
B | g
B | l
C | c
C | s
C | o
C | m
C | n
I need to display the report as following:
SampleName | Elements
A | a, b, c, f
B | a, g, l
C | c, s, o, m, n
QUESTION: is it possible? If it is, how should I do this?
FYI, I use CR10 & SQLServer 2000 database
Regards,
t