Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. select o.orders_id from orders o
  2. join facturi f on f.orders_id=o.orders_id
  3. join orders_total ot on ot.orders_id=o.orders_id
  4. where f.data_facturii BETWEEN '2018-12-01' AND '2018-12-31'
  5. AND o.site IN ('librariaonline.ro','librariileonline.ro', 'procarti.ro', 'librarultau.ro', 'universulcartii.ro')
  6. and o.orders_status in ('1000002', '1000003', '1000005', '1000006','1000030');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement