set @ds:=curdate();
select @ds type,'' cc
union
select 'OPD',(select count(*) from ovst where vstdate=@ds) cc
union
select 'Admit',(select count(*) from ipt where regdate=@ds) cc
union
select 'Stay',(select count(*) from ipt where dchdate is null) cc
union
select 'Stay ICU',(select count(*) from ipt where dchdate is null and ward in (select ward from ward where name regexp 'ICU')) cc