公保勞保聘僱資料分析

出自福留子孫
在2023年7月12日 (三) 11:15由丁志仁對話 | 貢獻所做的修訂版本

跳轉到: 導覽搜尋


各項 SQL 指令

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