中英文差异.txt 1.1 KB

12345678910111213141516171819
  1. <!-----企业中英文差异------>
  2. SELECT * from
  3. (SELECT * FROM `base_unit_view` where industry_dict IN ('04','05','06','09','11','01','02') AND showable != '0' and `language` = "en") A
  4. where not exists
  5. (SELECT * FROM (SELECT * FROM `base_unit_view` where industry_dict IN ('04','05','06','09','11','01','02') AND showable != '0' and `language` = "zh") B WHERE A.create_date = B.create_date)
  6. <!-----研究成果中英文差异------>
  7. select a.name,
  8. (select '有' from base_research_result_view b where a.id = b.entity_id and b.language ='ZH' and b.status ='0') as 'zh',
  9. (select '有' from base_research_result_view b where a.id = b.entity_id and b.language ='EN' and b.status ='0') as 'en'
  10. from
  11. base_research_result_entity a
  12. order by zh,en
  13. <!-----合作交流中英文差异------>
  14. select a.activity_name,
  15. (select '有' from activity_info b where a.id = b.base_activity_entity_id and b.language ='ZH' and b.activity_forum ='1') as 'zh',
  16. (select '有' from activity_info b where a.id = b.base_activity_entity_id and b.language ='EN' and b.activity_forum ='1') as 'en'
  17. from
  18. base_activity_entity a
  19. order by zh,en