The following should workCREATE TABLE #test(Dealer varchar(MAX),Carline varchar(MAX),Data1 int,Data2 int,Data3 int)INSERT INTO #testSELECT 'Dealer1','carline1',1234,4321,4567 UNION ALLSELECT NULL,'carline2',7894,1793,3179 UNION ALLSELECT 'Dealer2','carline1',1234,4321,4567 UNION ALLSELECT NULL,'carline2',7894,1793,3179 UNION ALLSELECT 'Dealer3','carline1',1234,4321,4567 UNION ALLSELECT NULL,'carline2',7894,1793,3179SELECT CASE WHEN a.Dealer IS NULL THEN (SELECT Dealer FROM (SELECT *,RowNum = ROW_NUMBER() OVER (ORDER BY (SELECT 1)) FROM #test)x WHERE x.RowNum=a.RowNum-1)ELSE a.Dealer END AS Dealer , Carline , Data1 , Data2 , Data3 FROM (SELECT *,RowNum = ROW_NUMBER() OVER (ORDER BY (SELECT 1)) FROM #test)aDROP TABLE #test
---------------Murali KrishnaYou live only once ..If you do it right once is enough.......