From cc61d0280402533fd084e3067dada2e9077774ca Mon Sep 17 00:00:00 2001 From: Bart Akeley Date: Sat, 21 Oct 2017 16:10:50 -0500 Subject: [PATCH] remove query from ddl --- scripts/ddl.sql | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/scripts/ddl.sql b/scripts/ddl.sql index f3b93e6..4ac4a48 100644 --- a/scripts/ddl.sql +++ b/scripts/ddl.sql @@ -114,19 +114,3 @@ INSERT INTO food_items (id, name, place_id, category, images, thumbImage, loc) ); INSERT INTO quantities SELECT id, current_timestamp, 'many' FROM food_items; - -SELECT - *, - ST_AsGeoJSON(loc) as location, - ST_Distance( - loc, - ST_GeogFromText('SRID=4326;POINT(-97.7286718 30.3033267)') - ) / 1609 as distance -FROM food_items -WHERE - ST_DWithin( - loc, - ST_GeogFromText('SRID=4326;POINT(-97.7286718 30.3033267)'), - 10 * 1609 - ) -ORDER BY distance ASC;