Skip to content
Advertisement

SQL: How to select rows for two conditions?

Hey I have frame which looks like this

I want to get one airport from every state which is closest to the south.

Advertisement

Answer

I am not sure what you mean by “closest to the south”. I will interpret it as the minimum latitude.

If so, you can use row_number():

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