How to show date rows equals current date? |
@jelz2018,
Can you do me a favor and run the query below and show a few rows of the output. select employee_id,year,month, case when LOCATE('-',multiple) > 0 then substring(multiple,1,locate('-',multiple) - 1) else multiple end as 1st_date, case when LOCATE('-',multiple) > 0 then substring(multiple,locate('-',multiple) + 1,length(multiple) - locate('-',multiple)) else multiple end as 2nd_date from ats_leave_apps |
Welcome Guest, Not a member yet? Register Sign In |