Advertisement
ramzes4

Untitled

Mar 19th, 2022
967
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.     orders.*,
  3.     order_delivery.NAME AS 'Тип доставки',
  4.     order_status.what AS 'Статус'
  5. FROM
  6.     `yii_doc`.`orders`
  7.     LEFT JOIN order_delivery ON order_delivery.id = orders.order_delivery_id
  8.     LEFT JOIN order_status ON order_status.id = orders.order_status_id
  9. WHERE
  10.     `order_status_id` = '10'
  11.     OR `order_status_id` = '13'
  12.     OR `order_status_id` = '11'
Advertisement
RAW Paste Data Copied
Advertisement