我期待一种产品及其标题和到期金额。但是这个查询效率不高。不确定我在这里缺少什么。任何帮助将不胜感激
SELECT DISTINCT p.product_title, po.qty, co.due_amount
FROM pending_order po
LEFT JOIN products p ON p.product_id = po.product_id
LEFT JOIN customer_orders co ON po.invoice_no = co.invoice_no
LEFT JOIN customers cs ON cs.customer_id = co.customer_id
WHERE co.invoice_no = '1355021133'
我得到的结果