I want to display record in this format:
This query shows Patient_code,ge nder,count, if there is 4 record for particular patient.
I want to display record in one row that should be in this format:
Can anybody help me with the solution?
Thanks in advance.
PATIENT_CODE,ge nder,Malecount, femalecount
Code:
Select PATIENT_CODE,gender,count(*) From BABY_MASTER Where Patient_Code='KBB-04-2010-96' group by PATIENT_CODE,SEX
I want to display record in one row that should be in this format:
Patient_code,Ma lecount,femalec ount
Can anybody help me with the solution?
Thanks in advance.
Comment