Skip to content

Instantly share code, notes, and snippets.

@Nxtra
Last active July 22, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Nxtra/e17269f483083c3189265fdc6101cab4 to your computer and use it in GitHub Desktop.
Save Nxtra/e17269f483083c3189265fdc6101cab4 to your computer and use it in GitHub Desktop.
CREATE OR REPLACE PUMP "YOUR_IN_APPLICATION_STREAM" AS
INSERT INTO "YOUR_IN_APPLICATION_PUMP" ("uniqueId", "currentSpeed", ..., "location")
SELECT STREAM
"sdi"."uniqueId",
"sdi"."currentSpeed",
...,
"ml"."locatie",
FROM "SPEED_DIFF_INDICATOR_SQL_STREAM" AS "sdi" LEFT JOIN "measurementLocations" as "ml"
ON "sdi"."uniqueId" = "ml"."id";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment