Skip to content

Instantly share code, notes, and snippets.

@amacal
Last active November 1, 2020 14:17
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 amacal/eb27caac9b208e1925aa398dc4cb9e2a to your computer and use it in GitHub Desktop.
Save amacal/eb27caac9b208e1925aa398dc4cb9e2a to your computer and use it in GitHub Desktop.
select count(1)
from ecds_db.playground.orders
where and _etl_deleted_at is null
and _etl_id not in
(
select _etl_id_prev
from ecds_db.playground.orders
where _etl_id_prev is not null
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment