I Have one table in sql
Date Day Start Time End Time Subject Teacher
2014-06-02 Monday 2:30 PM 04:30 PM Maths Mr.Smith
2014-06-10 Tuesday 2:30 PM 04:30 PM Science Mr.Ayar
2014-06-16 Monday 2:30 PM 04:30 PM Maths Mr.Smith
2014-06-02 Monday 3:30 PM 04:30 PM Maths Mr.Smith
I want to make query to check Mr.Smith is already engaged in inserted time slot