Skip to content

Instantly share code, notes, and snippets.

@HenryAtWealthfront
Created May 23, 2023 21:10
Show Gist options
  • Save HenryAtWealthfront/b8e182a73dc6d9745bde3dccab4bf0a4 to your computer and use it in GitHub Desktop.
Save HenryAtWealthfront/b8e182a73dc6d9745bde3dccab4bf0a4 to your computer and use it in GitHub Desktop.
SELECT
*
FROM
orders
JOIN
order_allocations
ON orders.id = order_allocations.order_id
WHERE
order_allocations.client_id = 'A'
AND order_allocations.completed_at > date(now())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment