1. SELECT
  2. *
  3. FROM
  4. evente_venue_seat
  5. WHERE
  6. org_id = 25009
  7. GROUP BY
  8. screenings_id,
  9. area_id,
  10. price_id,
  11. X,
  12. Y
  13. HAVING
  14. COUNT(*) > 1
  15. ORDER BY isSell asc
  1. SELECT sum(r.number) from eos_order_master as m JOIN eos_order_event_rel as r on m.increment_id = r.increment_id where m.order_state in(20,30,40) and r.event_id = 109630;
  2. from_unixtime
  1. select e.id,e.title,r.name,f.name,e.address from evente.evente_event as e LEFT JOIN em_common.ecs_regions as r on e.province_id = r.code JOIN em_common.ecs_regions as f on e.city_id = f.`code` where e.`status` = 5 and e.address like concat("%",r.name,"%");
  1. SELECT
  2. GROUP_CONCAT(id),GROUP_CONCAT(isSell)
  3. FROM
  4. evente_venue_seat
  5. WHERE
  6. org_id = 24455
  7. and
  8. screenings_id !=0
  9. and `status` !=3
  10. GROUP BY
  11. screenings_id,
  12. area_id,
  13. price_id,
  14. X,
  15. Y
  16. HAVING
  17. COUNT(*) > 1
  18. ORDER BY isSell asc