I have a table that looks something like this:
protocol varchar2(12) not null - pk
patient varchar2(12) not null - pk
coldate date not null - pk
testname varchar2(32) not null- pk
testresult_num number(11,5)
testresult_text varchar2(20)
I would like to produce results that for each unique protocol,patient,coldate to display horizontally the testname and result (either the testresult_num or testresult_text, whichever is not null). So the output would look something like this:
Protocol Patient Date WBC RBC PREG
ABCDEFG 12345 20021023 22.22 3.33 Negative
DEFGHIJ 78906 20011022 5.55 Positive
Any help in this is much appreciated! Thanks
protocol varchar2(12) not null - pk
patient varchar2(12) not null - pk
coldate date not null - pk
testname varchar2(32) not null- pk
testresult_num number(11,5)
testresult_text varchar2(20)
I would like to produce results that for each unique protocol,patient,coldate to display horizontally the testname and result (either the testresult_num or testresult_text, whichever is not null). So the output would look something like this:
Protocol Patient Date WBC RBC PREG
ABCDEFG 12345 20021023 22.22 3.33 Negative
DEFGHIJ 78906 20011022 5.55 Positive
Any help in this is much appreciated! Thanks