J
Jean
I have 10 firms and I want to get the top 20 sales for each
Firm ( Field is [firm_name]). I used this but it does not
pull the top sales. I want the qry to pull top highest
sales for each of the 10 firms. THANKS for any
suggestions!!
SELECT TOP 20 [qry 2003 Top 20_2].[C_NAME], [qry 2003 Top
20_2].[TRADE_OFFICE], [qry 2003 Top 20_2].[firm_id], [qry
2003 Top 20_2].[firm_name], [qry 2003 Top 20_2].[zip],
[qry 2003 Top 20_2].[terr], [qry 2003 Top 20_2].
[SumOfAnnuityFund], [qry 2003 Top 20_2].[SumOfMutualFund],
[SumOfAnnuityFund]+[SumOfMutualFund] AS Total
FROM [qry 2003 Top 20_2]
ORDER BY [SumOfAnnuityFund]+[SumOfMutualFund] DESC;
Firm ( Field is [firm_name]). I used this but it does not
pull the top sales. I want the qry to pull top highest
sales for each of the 10 firms. THANKS for any
suggestions!!
SELECT TOP 20 [qry 2003 Top 20_2].[C_NAME], [qry 2003 Top
20_2].[TRADE_OFFICE], [qry 2003 Top 20_2].[firm_id], [qry
2003 Top 20_2].[firm_name], [qry 2003 Top 20_2].[zip],
[qry 2003 Top 20_2].[terr], [qry 2003 Top 20_2].
[SumOfAnnuityFund], [qry 2003 Top 20_2].[SumOfMutualFund],
[SumOfAnnuityFund]+[SumOfMutualFund] AS Total
FROM [qry 2003 Top 20_2]
ORDER BY [SumOfAnnuityFund]+[SumOfMutualFund] DESC;