Skip to content

Instantly share code, notes, and snippets.

@HenryAtWealthfront
Created May 23, 2023 21:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
SELECT
*
FROM
orders
JOIN
order_allocations
ON orders.id = order_allocations.order_id
WHERE
orders.completed_at > date(now())
AND order_allocations.client_id = 'A'
AND order_allocations.order_id > :yesterdaysId
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment