本文介绍了如何使用SQL语句查看所有销售订单详细信息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有表客户(CustomerID,客户名称),,, Item_master(Item_code,Item_Name)
sales_Order(orderno,customerId)和orderdetails(Orderno,item_code,qty)
i想要sql查询或查看所有orderdetails命令显示。
喜欢
orderno |客户名称| Item_Name |数量
请指导...
我尝试过:
选择SalesOrder.OrderNo,ItemMasterFile.Descriptionitem,
OrderDetail.orderqty ,来自OrderDetail的Customer.CustomerName
内部联接ItemMasterFile上的ItemMasterFile.CodeItem = OrderDetail.CodeItem
内部联接Customer.CustomerID上的客户= SalesOrder.CustomerID
解决方案
i have table customer(CustomerID,CustomerName),,, Item_master(Item_code,Item_Name)
sales_Order(orderno,customerId) and orderdetails(Orderno,item_code,qty)
i want sql query or view in which all orderdetails order to display.
like
orderno|CustomerName|Item_Name|qty
please guide...
What I have tried:
select SalesOrder.OrderNo,ItemMasterFile.Descriptionitem, OrderDetail.orderqty,Customer.CustomerName from OrderDetail inner join ItemMasterFile on ItemMasterFile.CodeItem=OrderDetail.CodeItem inner join Customer on Customer.CustomerID=SalesOrder.CustomerID
解决方案
这篇关于如何使用SQL语句查看所有销售订单详细信息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!