I want to write a sql which take two input time as string format. i just check the time so that two classes in school will not overlapped fully or partially both. for ex: if the time 9:00Pm - 10:00PM already in database then it prevents to insert. so that can't insert like as : 8:00PM- 12PM. but it can insert from 10:00PM -12PM. Also check AM/PM.
how i handle it by SQL.