DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Max Angelo Dapitilla Perin
Max Angelo Dapitilla Perin

Posted on

Answer: SQL - 'DISTINCT' based on only some columns?

You probably need to use GROUP BY instead of DISTINCT in this case.

Post your query now and I will help you more.

Alternatively, if you just want to return the first address, that's a different query entirely. Does it need to return the address? What data do you need…

Top comments (0)

Become a Moderator
Fill out this survey and help us moderate our community by becoming a tag moderator here at DEV.