公保勞保聘僱資料分析

出自福留子孫
於 2023年7月12日 (三) 11:00 由 丁志仁(留言 | 貢獻) 所做的修訂 (→‎各項 SQL 指令)
跳至導覽 跳至搜尋


各項 SQL 指令

  1. :
  2. :
  3. :
  4. :
  5. 生成去年國中行政人力:update classNumberJ set 去年應有行政人力=((0.1357*班級數+6.68)-0.0002*班級數*班級數) where 班級數 not like '%-%'
  6. 去年公校國中行政人力:select sum(去年應有行政人力) from classNumberJ where SUBSTRING(學校代碼,3,1)!='1'
  7. 公校國中新行政人力員額數:select sum((0.37*班級數+7)-0.008*班級數*班級數) from classNumberJ where SUBSTRING(學校代碼,3,1)!='1'
  8. 國小勞保9月薪級,單一薪級僱用超過50人:select salary,count(*) from postJunior1九月 group by salary having count(*)>50
  9. 國中勞保9月薪級,單一薪級僱用超過30人:select salary,count(*) from postJunior2 where dataDate='2022-09-30' group by salary having count(*)>30
  10. :