status 入職時間 離職時間
在職/離職
uj5u.com熱心網友回復:
參考置頂貼,提問的智慧!uj5u.com熱心網友回復:
select year(入職時間),month(入職時間),count(1) from table where 入職時間>='***' and 入職時間<'***' and status='在職'group by year(入職時間),month(入職時間)
轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/147675.html
標籤:MySQL
上一篇:mysql中的select count(*) from user where username='%ss%'查詢回傳的值是0
