I\'m looking get two things from a query, given a set of contraints:
I can get the first ma
Well, you can use OVER clause, which is an window function.
SELECT TOP (1) OrderID, CustID, EmpID, COUNT(*) OVER() AS MatchCount FROM Sales.Orders WHERE OrderID % 2 = 1 ORDER BY OrderID DESC