The Employee table has four fields EmpNo,EmpName,FromDate and ToDate filelds. I have to select the EmpNo and EmpName where today’s date is between the from date and the to date.
Select EmpNo,EmpName from Employee where FromDate = Trunc(SYSDATE) And ToDate =Trunc(SYSDATE)
Is that the way of doing