Created
June 1, 2015 09:02
-
-
Save haydarai/293be4a473358941903e to your computer and use it in GitHub Desktop.
Requestnya Ardi
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
/* Nyari sekolah yang deket traffic light */ | |
SELECT name, ST_DISTANCE(geom, (SELECT geom from public."traffic lights" WHERE gid = 10)) | |
FROM | |
public."school and universities" | |
WHERE ST_DISTANCE(geom, (SELECT geom from public."traffic lights" WHERE gid = 10)) < 1000 | |
ORDER BY ST_DISTANCE ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment