I have duplicates in my table that I want to select but rather than doing a select distinct on all 12 columns I only want 3 of the columns as distinct. If I do a select distinct on all columns, those 3 columns can still have duplicates that I don't want because some of the other columns are different.
I want to see all columns but want it to be distinct on only 3.
I've tried the group by and with solutions in the question that this one is supposedly a replication of however those did not work. For whatever reason when I do the group by it only executes the query if I include all the columns in the table in it which is not what I want cause I only want the 3 columns distinct. The "with c" just wouldn't execute when I attempted it.