A simple SQL
How can i get output like this from this sql??
Output:
First row: initial values of the fields
Second row: average of the same fields
Please help me...
select * from (
select HEM_LOKOSIT, HEM_NNS
from LPMS.HEMOGRAMS
where HEM_PATIENT_ID = 33
union
select AVG(HEM_LOKOSIT), AVG(HEM_NNS)
from LPMS.HEMOGRAMS
where HEM_PATIENT_ID = 33)
order by HEM_LOKOSIT desc nulls last;
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

ferasdeeb26 pointsPosted Jan 1, 2005, 6:41 AM EST
aylin_sk87 pointsPosted Jan 2, 2005, 9:26 PM EST