Well here's a total hackCREATE TABLE #myTable99(Col1 char(3), Col2 varchar(256), Col3 int, Col4 int, Col5 int)GOINSERT INTO #myTable99(Col1, Col2, Col3, Col4, Col5)SELECT 'G01', 'Hardy Rural Families Remote America', 224, 224, 356133 UNION ALLSELECT 'G02', 'Rural Southern Living Remote America', NULL, 224, 356133 UNION ALLSELECT 'G03', 'Coal and Crops Remote America', NULL, 224, 356133 UNION ALLSELECT 'G04', 'Native Americans Remote America', NULL, NULL, NULLGOSELECT a.Col1, a.Col2, b.Col3, b.Col4, b.Col5FROM #myTable99 aJOIN (SELECT MIN(Col3) AS Col3, MIN(Col4) AS Col4, MIN(Col5) AS Col5 FROM #myTable99) AS b ON 1=1GODROP TABLE #myTable99GO
Brett8-)Hint: Want your questions answered fast? Follow the direction in this linkhttp://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspxAdd yourself!http://www.frappr.com/sqlteam