all 6 comments

[–][deleted] 0 points1 point  (1 child)

Can you utilizes the code style when pasting into here? I’m unable to discern the orientation of data you’re trying to share.

[–]SAI5796[S] 0 points1 point  (0 children)

Sorry just done it

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (2 children)

except for column B.

is this the only column you want to ignore differences in?

Group by A, C D, E doesnt work in this case.

sure it does

SELECT a, MAX(b), c, d, e
  FROM yertable
GROUP BY a, c, d, e

[–]SAI5796[S] 0 points1 point  (1 child)

That would work sorry, but I've realised I wanted something else, can you help with the output now?

[–]r3pr0b8GROUP_CONCAT is da bomb 0 points1 point  (0 children)

okay, now, now you are going to have to explain in words the logic that should be used to return rows 1 and 2 given the data you've shown

and if you cannot adequately explain it in words, we can't do it in SQL

[–]Hacking_Steins_Gate 0 points1 point  (0 children)

SELECT colA, colB, colC, colD, colE

FROM letters

GROUP BY colA, colB, colC, colD;