Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. select state, increment_id, grand_total, created_at, quote_id as q, (select count(x.quote_id) from sales_flat_order as x where x.quote_id = q group by x.quote_id) as count from sales_flat_order having count > 1 order by quote_id desc, created_at desc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement