Created
December 9, 2015 23:30
-
-
Save parkercoleman/cfdbae09c11e4ff85e4a to your computer and use it in GitHub Desktop.
Maptime Seattle Postgis - Problem 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT a.name, ST_Distance(c.geom, a.geom, true) * 0.000621371 AS distance_as_miles | |
FROM geo.cities_ne c | |
CROSS JOIN transport.airports_ne a | |
WHERE c.name = 'Seattle' | |
ORDER BY ST_Distance(c.geom, a.geom, true) ASC | |
LIMIT 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment