I have quite a bit of knowledge about SQL queries.
I'm trying to get dates, and I have 2 tables ohrm_leave and ohrm holiday. i need to select the dates of ohrm_leave which are present in ohrm_holiday. if its present then msg will show "Its present".
ohrm_leave http://s22.postimg.org/5wfklw6gt/ohrm_leave.jpg
ohrm_holiday http://s10.postimg.org/fs255n5ah/ohrm_holiday.jpg