is this it ?create table #BOOKINGS( PropID int, PropStart datetime, PropEnd datetime, PropLength int)insert into #BOOKINGSselect 3, '2005-12-03', '2005-12-13', 10 union allselect 5, '2005-12-03', '2005-12-13', 10 union allselect 3, '2005-12-15', '2005-12-28', 13 union allselect 7, '2005-01-01', '2005-01-15', 14create table #PROPERTY( PropID int, PropName varchar(50))insert into #PROPERTYselect 3, 'My House' union allselect 5, 'His House' union allselect 7, 'Her House'declare @req_date datetime, @nights intselect @req_date = '2005-12-07', @nights = 6select *from #BOOKINGS b inner join #PROPERTY pon b.PropID = p.PropIDwhere PropStart <= @req_dateand PropEnd >= @req_dateand PropStart <= dateadd(day, @nights, @req_date)and PropEnd >= dateadd(day, @nights, @req_date)
-----------------[KH]Guys, where are we right now ?