一个数据库的结构如下:
(表名:holiday_apply)
id | aid | satrtDate | endDate |
1 | 3 | 2018-11-21 | 2018-11-22 |
2 | 7 | 218-12-20 | 2018-12-22 |
3 | 3 | 2018-12-01 | 2018-12-03 |
想要查询每个月每个人的请假天数,该怎么写语句。
一个数据库的结构如下:
(表名:holiday_apply)
id | aid | satrtDate | endDate |
1 | 3 | 2018-11-21 | 2018-11-22 |
2 | 7 | 218-12-20 | 2018-12-22 |
3 | 3 | 2018-12-01 | 2018-12-03 |
想要查询每个月每个人的请假天数,该怎么写语句。