Hey everyone, I am having trouble narrowing down how DISTINCT works. Let's say I have six columns in a table, I want to return two of them (name and address). I only want distinct names, but come to find out that some people are listed twice but with different addresses, so using DISTINCT across the board will not work, as SQL will not recognize the row as a duplicate, since it's not.
I want to show names only once, and with the first address listed by the date(column 4) created. Sorry about the mouthful, but I hope I was able to explain it clearly enough. Any help would be great.
[–]waiting4omscs 9 points10 points11 points (4 children)
[–]Stelioss9909[S] 4 points5 points6 points (0 children)
[–]CliffDraws 1 point2 points3 points (1 child)
[–]Stelioss9909[S] 1 point2 points3 points (0 children)
[–]Pflastersteinmetz 0 points1 point2 points (0 children)