Hi there
I am wondering what would be the best way to query a list for distinct value in one column and sorted by other one and get the top 1 record.
In tsql I would do something like that if I want to see the all customers last Order
SELECT Customer , MAX(LastOrderDate) AS LastOrder
FROM CustomerOrder
GROUP BY Customer
How can I apply this query to list with CMAL or Linq query?
Thanks
I am wondering what would be the best way to query a list for distinct value in one column and sorted by other one and get the top 1 record.
In tsql I would do something like that if I want to see the all customers last Order
SELECT Customer , MAX(LastOrderDate) AS LastOrder
FROM CustomerOrder
GROUP BY Customer
How can I apply this query to list with CMAL or Linq query?
Thanks