Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT `quote_id`,
- COUNT(`quote_id`) AS `duplicate_count`,
- `increment_id` AS `first_increment_id`,
- GROUP_CONCAT( `increment_id` SEPARATOR ' | ' ) AS `increment_ids`,
- `created_at`,
- `state`,
- `status`,
- `customer_email`,
- `grand_total`
- FROM `sales_flat_order`
- GROUP BY `quote_id`
- HAVING COUNT(`quote_id`) > 1
- ORDER BY `created_at` ASC
Add Comment
Please, Sign In to add comment