eClinicalWorks interview question

few DBMS queries