Skip to content
Advertisement

UNION does not remove duplicates in result

I have 2 queries that i need the result to be combined (no duplicates), i thought UNION would work but the result is as if i used UNION ALL.

What i get now


And what i want


Advertisement

Answer

You can try the below way – using aggregation on top of your query

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement