I am having a problem using distinct with *. I have a table that as a join and I am trying to do a statement like:
SELECT DISTINCT Name, * FROM table_a JOIN table_a.id=table_b.id WHERE status=1
But it is not allowing me to do so. Is there a way of using Distinct with * option?
Name, *part?mysqlandpostgresql?DISTINCT *does not make any sense. That will include the primary key column(s) and so by defintion all rows will be returned