有两个表orders(包含order_id、customer_id、order_date)和customers(包含custo...
有两个表orders(包含order_id、customer_id、order_date)和customers(包含customer_id、customer_name),如何查询每个订单的订单号、客户姓名和订单日期?**** Hidden Message *****
SELECT o.order_id, c.customer_name, o.order_date
FROM orders o
JOIN customers c ON o.customer_id = c.customer_id; select A.order_id, B.customer_name,A.order_date from orders A left join customers B on A.customer_id = B.customer_id SELECT o.order_id, c.customer_name, o.order_date
FROM orders o
JOIN customers c ON o.customer_id = c.customer_id; SELECT o.order_id, c.customer_name, o.order_date
FROM orders o
JOIN customers c ON o.customer_id = c.customer_id; SELECT o.order_id, c.customer_name, o.order_date
FROM orders o
JOIN customers c ON o.customer_id = c.customer_id; SELECT o.order_id, c.customer_name, o.order_date
FROM orders o
JOIN customers c ON o.customer_id = c.customer_id;
页:
[1]