Skip to content

Instantly share code, notes, and snippets.

@ebrelsford
Created August 27, 2013 01:26
Show Gist options
  • Save ebrelsford/6348691 to your computer and use it in GitHub Desktop.
Save ebrelsford/6348691 to your computer and use it in GitHub Desktop.
Select unique sign occurrences as used here: http://cdb.io/15ekzYE
SELECT
house,
street_name,
MIN(cartodb_id) AS cartodb_id,
MIN(the_geom) AS the_geom,
MIN(the_geom_webmercator) AS the_geom_webmercator,
MIN(text_on_sign) AS text_on_sign,
MIN(text_occurrences) AS text_occurrences,
MIN(rotation) AS rotation
FROM sign_application_filings
WHERE text_on_sign != ''
GROUP BY house, street_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment