请查询Northwind数据库中Orders表中的所有列语句 如何写

请查询Northwind数据库中Orders表中的所有列语句
2024-12-15 00:49:19
推荐回答(2个)
回答1:

p.ProductName, s.CompanyName, p.UnitPrice
FROM Products p, Suppliers s
where p.SupplierID = s.SupplierID
2、
SELECT CategoryID, avg(UnitPrice) FROM Products group by CategoryID
3、
SELECT o.OrderID, c.CompanyName, e.LastName, e.FirstName, o.OrderDate
FROM Orders o, Customers c, Employees e
where o.CustomerID = c.CustomerID
and e.EmployeeID = o.EmployeeID
ORDER BY o.OrderDate

回答2:

use Northwind
GO
select * from Orders