Well, you can't insert 'None' into a Datetime field. But if you just want it to be a varchar field the following would work (However, I would suggest keeping it Datetime, and using NULL to represent no end date)create table #t1 ([ID] int, StartDate Datetime)goInsert into #t1 values(1 ,'1/1/2004')Insert into #t1 values(1 ,'03/11/04')Insert into #t1 values(1 ,'06/22/04')Insert into #t1 values(2 ,'2/13/2004')Insert into #t1 values(2 ,'10/23/2004')Insert into #t1 values(3 ,'2/14/2004')Insert into #t1 values(3 ,'4/15/2004')Insert into #t1 values(3 ,'6/5/2004')Insert into #t1 values(3 ,'8/8/2004') select ID, StartDate, ISNULL((Select convert(varchar(12),MIN(StartDate), 101) From #t1 Where ID = a.ID AND StartDate > a.StartDate), 'None')From #t1 agoDrop Table #t1go
-Chadhttp://www.clrsoft.comSoftware built for the Common Language Runtime.