Viewing post 1 (of 1 total)
Using the subquery in Function call
it could be simply--
SELECT SalesOrderID
,OrderDate
,DATEDIFF(DAY, OrderDate, (SELECT MAX(OrderDate)
...
May 18, 2016 at 10:57 am
#1879934