資料校正函數

來源:互聯網
上載者:User

select * from price_list where item_code in(select item_code  from (select count(item_code),ITEM_CODE  from price_list a  where item_class not in('A','B','I')  group by item_Code HAVING count(item_code) > 1 ) c);select * from clinic_item_dict where item_code in(select item_code  from (select count(item_code),ITEM_CODE  from price_list a  where item_class not in('A','B','I')  group by item_Code HAVING count(item_code) > 1 ) c) ;select * from clinic_item_name_dict where item_code in(select item_code  from (select count(item_code),ITEM_CODE  from price_list a  where item_class not in('A','B','I')  group by item_Code HAVING count(item_code) > 1 ) c) ;--查詢是否有重複資料select * from price_list where item_name in(select item_name  from (select count(item_name),ITEM_name  from price_list a  where item_class not in('A','B','I')  group by item_name HAVING count(item_name) > 1 ) c);select * from clinic_item_dict where item_name in(select item_name  from (select count(item_name),ITEM_name  from price_list a  where item_class not in('A','B','I')  group by item_name HAVING count(item_name) > 1 ) c);select * from clinic_item_name_dict where item_name in(select item_name  from (select count(item_name),ITEM_name  from price_list a  where item_class not in('A','B','I')  group by item_name HAVING count(item_name) > 1 ) c);--查詢名稱是否有重複select * from price_list where item_name like '% %' or item_code like '% %' or item_spec like '% %' or units like '% %';select * from price_item_name_dict  where item_name like '% %' ;select * from clinic_item_dict where item_name like '% %' or item_code like '% %';select * from clinic_item_name_dict  where item_name like '% %' or item_code like '% %';select * from clinic_vs_charge  where charge_item_spec like '% %' or units like '% %';select * from drug_price_list   where drug_code like '% %' or drug_spec like '% %' or firm_id like '% %' or units like '% %';select * from drug_dict where drug_name like '% %' or  drug_code like '% %' or drug_spec like '% %' or units like '% %';select * from drug_stock where   drug_code like '% %' or drug_spec like '% %' or units like '% %' or firm_id like '% %';select * from exp_price_list   where exp_code like '% %' or exp_spec like '% %' or firm_id like '% %' or units like '% %';select * from exp_dict where exp_name like '% %' or  exp_code like '% %' or exp_spec like '% %' or units like '% %';select * from drug_stock where   drug_code like '% %' or drug_spec like '% %' or units like '% %' or firm_id like '% %';--查詢是否有空格項目select * from clinic_vs_charge a  where  ( a.charge_item_class,a.charge_item_code ) not in(select item_class ,item_code from price_list ) ;select * from clinic_vs_charge a  where  ( a.charge_item_class,a.charge_item_code,a.charge_item_spec ) not in(select item_class ,item_code,item_spec from price_list ) ;----診療項目不在價表中的項目select * from price_list where (item_class,item_code) not in(select charge_item_class,charge_item_code  from clinic_vs_charge ) ;---價表項目部在診療項目中的

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.