USING GROUP BY, ORDER BY AND UNION IN SAME QUERY

后端 未结 0 1896
[愿得一人]
[愿得一人] 2021-01-15 13:41

SELECT TOP 1 o.OrderID,e.FirstName+\'\'+e.Lastname,COUNT(DISTINCT p.ProductID) AS [NUMBER OF PRODUCTS], DATEDIFF(DAY,o.OrderDate,o.RequiredDate) AS [DAYS TAKEN FOR DELIVERY]

相关标签:
回答
  • 消灭零回复
提交回复
热议问题