J
JWilliams
I've been racking my brain on this for a few of hours now. I have a table
that contains four columns. They are ID, FirstName, LastName, and
DisplayName. ID is the primary key. What I would like to do is if the
DisplayName is unique select it, otherwise, select the concatenation of the
FirstName and ListName separated by a single whitespace, of course. I can
figure out how to find what data is duplicated, but I cannot seem to get the
the fully unique data. The Distinct clause removes all but one row of the
duplicated data. I'm looking to get rid of all rows that have been
duplicated, not just all but one row. I think that if I determine how to get
the truly unique rows and I can get the rows with the duplicated column
entries, that I can use an IIF to select the value that should be displayed
accordingly.
that contains four columns. They are ID, FirstName, LastName, and
DisplayName. ID is the primary key. What I would like to do is if the
DisplayName is unique select it, otherwise, select the concatenation of the
FirstName and ListName separated by a single whitespace, of course. I can
figure out how to find what data is duplicated, but I cannot seem to get the
the fully unique data. The Distinct clause removes all but one row of the
duplicated data. I'm looking to get rid of all rows that have been
duplicated, not just all but one row. I think that if I determine how to get
the truly unique rows and I can get the rows with the duplicated column
entries, that I can use an IIF to select the value that should be displayed
accordingly.