I have a table like this...
CustomerID DBColumnName Data -------------------------------------- 1 FirstName Joe 1 MiddleName
You can use the MAX aggregate, it would still work. MAX of one value = that value..
In this case, you could also self join 5 times on customerid, filter by dbColumnName per table reference. It may work out better.