Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. SELECT po.id FROM product_order as po
  2. INNER JOIN product_order_status_history posh ON posh.product_order = po.id
  3. AND posh.order_status <> 5
  4.  
  5. po | posh status
  6. --------+------------
  7. 126024 | 11
  8. 126024 | 5
  9. 140582 | 6
  10. 140582 | 10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement