You can do the following:SELECT blablaColumn, 123Column, ahfColumn, MAX(CCWOrNULLColumn)FROM YourTableGROUP BY blablaColumn, 123Column, ahfColumn
However, that may not be what you want. For example, what do you want to get if your data is like this?blabla 123 ahf NULLblabla 123 ahf CCW1abcdef 457 xyz NULLrrrrrr NULL NULL bbbrrrrrr NULL NULL cccrrrrrr NULL NULL NULL
Or perhaps some other combination? The way you query would change depending on what your requirements are - hence Fred's request to post unfiltered query.I have found Brett's blog to be very useful when I want to post in a way that gets quick and accurate answers: http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx