SQLAI.ai

get customers with their orders even if no order match

            
SELECT c.customerNumber, c.customerName, o.orderNumber, o.orderDate, o.requiredDate, o.shippedDate, o.status, o.comments FROM customers c LEFT JOIN orders o ON c.customerNumber = o.customerNumber;
  • Public
  • ·
  • Thu, 26 Jan 2023 15:28:30 GMT