title: need a sql query to select the date from another table
body: <p>I have quite a bit of knowledge about SQL queries.</p>
  
  <p>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".</p>
  
  <p>ohrm_leave
  <a href="http://s22.postimg.org/5wfklw6gt/ohrm_leave.jpg" rel="nofollow">http://s22.postimg.org/5wfklw6gt/ohrm_leave.jpg</a></p>
  
  <p>ohrm_holiday
  <a href="http://s10.postimg.org/fs255n5ah/ohrm_holiday.jpg" rel="nofollow">http://s10.postimg.org/fs255n5ah/ohrm_holiday.jpg</a></p>