Skip to content

Instantly share code, notes, and snippets.

@mshakhomirov
Created November 24, 2022 14:41
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 mshakhomirov/18775cbbe8288af864ad79247c0de63d to your computer and use it in GitHub Desktop.
Save mshakhomirov/18775cbbe8288af864ad79247c0de63d to your computer and use it in GitHub Desktop.
insert target_table (transaction_id)
select transaction_id from source_table where transaction_id > (select max(transaction_id) from target_table)
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment