select count(*),patient_id from mr_file_index where dept_code ='32' and create_date_time > to_date('2011-05-18','yyyy-mm-dd') group by patient_idselect count(*),dept_admission_to from pat_visit where dept_admission_to in 
('120','32','29','01','28','30') and admission_date_time > to_date('2011-05-18','yyyy-mm-dd') group by dept_admission_to