Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 remove the null and compact the row

Author  Topic 

fh200300us
Starting Member

28 Posts

Posted - 2008-07-28 : 22:21:14
I want to remove the null and compact the row.
or like that
I have rows like this.the third column is same.remove the null field.I think it should use MAX or SUM. But I forget.
1. Null B A
2. C Null A
3. D Null A

The result is

1.C B A
2.D B A

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2008-07-28 : 22:24:48
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=107571
are you using SQL Server 2000 or 2005 ? Please do not cross post and post in appropriate forum.


KH
[spoiler]Time is always against us[/spoiler]

Go to Top of Page
   

- Advertisement -