Skip to content

Instantly share code, notes, and snippets.

@mbforr
Created August 11, 2021 20:07
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mbforr/26bd8d341af6737d59b1a57d622b079c to your computer and use it in GitHub Desktop.
WITH
nyc AS (
SELECT
*
FROM
PROJECT.DATASET.nyc
LIMIT
10000)
SELECT
nyc.vendor_id,
a.vendor_id,
st_distance(a.geom,
nyc.geom)
FROM
nyc
CROSS JOIN
nyc a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment