0
查找那些在今年第一季度加入的員工的記錄,我已經嘗試了以下查詢,但我希望查詢沒有指定明確的日期。尋找那些在今年第一季度加入的員工
select * from employee where DOJ between '2015-01-01' and '2015-03-31';
查找那些在今年第一季度加入的員工的記錄,我已經嘗試了以下查詢,但我希望查詢沒有指定明確的日期。尋找那些在今年第一季度加入的員工
select * from employee where DOJ between '2015-01-01' and '2015-03-31';
使用quarter
select * from employee where year(DOJ) = 2015 and quarter(DOJ) = 1;
由於它的工作 – Deepesh