Need SQL logic
I have table with Column name EID, Emp_name, 1,2,3,4,5,6,7....till 31 (Column 1 to 31 are calendar dates) now i m trying to fetch only 3 column EID, EMP_name and date which is equals to sys date.
Example
Todays SYS_date is 2nd-Jan-2019
and i need column with value = 2 like this...
EID Emp_name 2 |
123 James SCOTT P |
133 Mark M A |
133 Mark Man P |