Hi All,
My Requirement is like - Master data table (Example below) having employee ID, From_Date.and To_date. Based on the current date, I would return data that is valid for today.
Example, My desired output would be from below table is only EMp_ids are 101,104,105. since emp_id's (102 and 103 ) are ignored since to_date is expired based on current date.
Table:
| Emp_id From_date | To_date |
| 101 20/01/2001 | 01/12/2015 |
| 102 20/01/2001 | 01/10/2014 |
| 103 02/01/2001 | 01/12/2013 |
| 104 07/01/2001 | 01/12/2016 |
| 104 06/01/2001 | 01/11/2015 |
| can you some one please give me suggestion to achieve this logic. | |
| Thank you | |