hey everyone,
i need to return the top 25 customers for each state. sounds simple enough, but it's not working for me...
i am working from a union select statement that joins current month table and remainder of 2004 months.
SELECT [UNION SELECT CURRENT YEAR].CURRENTSALES, [UNION SELECT CURRENT YEAR].CUSTNUMBER, [UNION SELECT CURRENT YEAR].STATE
FROM [UNION SELECT CURRENT YEAR]
ORDER BY [UNION SELECT CURRENT YEAR].CURRENTSALES DESC;
so i need the TOP 25 CURRENTSALES, with CUSTNUMBER and STATE.
Thanks in advance,
spot
i need to return the top 25 customers for each state. sounds simple enough, but it's not working for me...
i am working from a union select statement that joins current month table and remainder of 2004 months.
SELECT [UNION SELECT CURRENT YEAR].CURRENTSALES, [UNION SELECT CURRENT YEAR].CUSTNUMBER, [UNION SELECT CURRENT YEAR].STATE
FROM [UNION SELECT CURRENT YEAR]
ORDER BY [UNION SELECT CURRENT YEAR].CURRENTSALES DESC;
so i need the TOP 25 CURRENTSALES, with CUSTNUMBER and STATE.
Thanks in advance,
spot