Is it possible to use SELECT DISTINCT to use distinct on certain columns, but not on others, for example
"SELECT DISTINCT columna, columnb, columnc FROM table" would bring back all the results where columna, columnb and columnc were not all the same, and if they were it would bring back only one (the first time it happened) result.
However I only want to discriminate by columna and columnb. ie, return all the results where colmna and column are not the same, regardless of columnc, and only return one result in total for all the results where columna and b are the same.
Hope that made sense, was a little wordy!
"SELECT DISTINCT columna, columnb, columnc FROM table" would bring back all the results where columna, columnb and columnc were not all the same, and if they were it would bring back only one (the first time it happened) result.
However I only want to discriminate by columna and columnb. ie, return all the results where colmna and column are not the same, regardless of columnc, and only return one result in total for all the results where columna and b are the same.
Hope that made sense, was a little wordy!