Hi All,
I have a stored procedure which displays list of ADMITTED,QUEUED and DISCHARGED patients. The patient status is stored in a table. A represents ADMITTED patient, Q represents QUEUED patient and D represents DISCHARGED patient. I am using a dropdown to display the ADMITTED,QUEUED and DISCHARGED patients respectively. I need to add a new option in the dropdownas ALL which displays all i.e., ADMITTED,QUEUED and DISCHARGED patients but in a classified manner on the same page like:
ADMITTED
--------
RegNo PatientName Age
---- ----------- ---
A1 PNA 70
QUEUED
--------
RegNo PatientName Age
---- ----------- ---
D1 PNQ 53
DISCHARGED
--------
RegNo PatientName Age
---- ----------- ---
Q1 PND 45
How should i code my stored procedure for this kind of formatted output?
Thanks!