I apply the SELECT DISTINCT across multiple columns. Where the values of the rows of two or more columns are different, doubles appear (one column each).
Here is what I mean, see the picture:
Doubles are not needed! Of course, you can then go through the sample in a loop and replace all the values in the column with NULL .. But, (processing code in PL), this can be very slow!
And here, how to write such a SQL query right away, which will show only one first value of a row in a column, and the rest duplicate values of rows will make NULL ?? In SQL
PS Of course, ideally it should work on several columns too ..