I have a requirement where I need to assign some resource for some tine frame .For example
Existing in Database : John Smith — 3/1/2011 — 6:00 AM To 7:00 AM — Economics
To Be Inserted: John Smith — 3/1/2011 — 6:30 AM to 7:00 AM — Maths
Here while inserting second row I want to check this time overlap if its overlapping
I want to skip insert.How can I achieve this ?I have Date , FromTime and ToTime in seperate columns.
use computed dates using a conversion:
yields e.g. start_datetime and end_datetime
assume variables: @inserted_start_datetime, @inserted_end_datetime, @name
EDITED