試 select a.id,a.name,a.start_date,a.end_date ,isnull((select '請假中' from test as...
select 人名 from test where (sysdate - 起始日期) < 請假天數 3-1=2 < 5 在五天內=請假 根據不同SQ...
大於等於起始時間 小於等於結束時間