I have a table schedule schedule------------schedid (4)secid int(4)days varchar(50)timein datetimetimeuot datetime declare @days varchar(20) declare @timein datetime declare @timeout datetime select @days=e.days,@timein=e.timein,@timeout=e.timeout from inserted e if @days='Monday' begin if exists(Select * from schedule where days in('Monday','Monday and Wednesday') and @timein between timein and timeout) begin raiserror conflict time rollback transaction end end if @days='Monday' begin if exists(Select * from schedule where days in('Tuesday','Tuesday and Thursday') and @timein between timein and timeout) begin raiserror conflict time rollback transaction end endi want to build the trigger that will not conflict the time schedule, where i sent to parameter..... parameter @timein and @timeoutfinding the truthmaking a maze on my mind....