Skip to content

Instantly share code, notes, and snippets.

@andrewpthorp
Created June 23, 2011 16:19
Show Gist options
  • Save andrewpthorp/1042894 to your computer and use it in GitHub Desktop.
Save andrewpthorp/1042894 to your computer and use it in GitHub Desktop.
Mysql query
select * from orders join order_statuses on orders.id=order_statuses.order_id where order_statuses.status not in ('test', 'test_failed', 'test_sent', 'test_queued');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment