Skip to content
Advertisement

How i can change SQL in order to to avoid DISTINCT and 2 fields in WHERE?

here is my SQL, I want to get rid of WHERE (ADDRESS_KEY, PRIO). How I can say it with JOIN?

Thanks a lot in advance.

Advertisement

Answer

You can join the table to the query you use in the WHERE clause:

You may remove DISTINCT from SELECT depending on the results.

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