MySQL: Ignore a selected column when using DISTINCT

Posted by John Leonard on Stack Overflow See other posts from Stack Overflow or by John Leonard
Published on 2010-05-26T23:29:14Z Indexed on 2010/05/26 23:31 UTC
Read the original article Hit count: 182

Filed under:
|
|

Let's say:

  1. I want to query colA, colB and colC in my table.

  2. I want to see DISTINCT values but I don't want colA to be a criteria for distinction.

  3. Omitting colA isn't an option.

What's the best way to structure that query?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about query