Hi guys,
I'm trying to use a query using CROSS APPLY like this:
SELECT C.CustomerID, O.SalesOrderID, O.TotalDue
FROM AdventureWorks.Sales.Customer AS C
CROSS APPLY AdventureWorks.dbo.fn_GetTopOrders(C.CustomerID, 3) AS O
ORDER BY CustomerID ASC, TotalDue DESC
Is there a way how I can embed this query in a predicate?
By the way, I'm using the adapter scenario.
Thanks in advance,
Gerben Vermeulen