I am trying to run a query that will be able to list the top 10 values (this is the 10 transactions that occurred the most by percent). I have one query (called transsum) that sums up all of the transactions by transaction type, then I run another query (called trans%) off of transsum that will calculate the transaction percent. I want the query to return only the 10 highest percents. I tried to do an auto number in trans% and then limit the auto number field to 10 or less, but couldn't find a way to do it.
Is there a way to write SQL so that if I have transsum sorted descending according to transaction counts then trans% will only grab the 10 highest transaction counts. Or is there a completely different way to do this?
Thanks in advance,
Josh
Is there a way to write SQL so that if I have transsum sorted descending according to transaction counts then trans% will only grab the 10 highest transaction counts. Or is there a completely different way to do this?
Thanks in advance,
Josh