here you go with selectSELECT t.Trans ,t.Start ,t.CompID ,t.Seq1 ,t.Name ,t.Seq2 ,t.Stop ,COALESCE(t1.HrsPerDay,t.HrsPerDay)FROM table tLEFT JOIN table t1ON t1.CompID = t.CompIDAND t.Trans = 'AWAY'AND t1.Trans LIKE 'CS%'AND t.Start >= t1.StartAND (t.Start <= t1.Stop OR t1.Stop IS NULL)
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/