K
Kat5813
I have a query shown below:
SELECT data.[Account-Sub account], data.[Account Unit], data.[Account Unit
Description], data.Account, data.[2007 Actual], data.[2008 Actual],
data.[2009 Actual], data.[2009 Budget], data.Description, data.[Description
Order], data.[LEVEL 1], data.[L1 Order], data.[LEVEL 2], data.[L2 Order],
data.[LEVEL 3], data.[L3 Order], data.[LEVEL 4], data.L4Order, data.[LEVEL
5], data.[LEVEL 6]
FROM data;
Based on this, is there any way to select the top 10 for the 2009 actual in
each of the different descriptions (data.description). So, the description
filed has several different values. What I want is for each of those values,
give me a list of the top 10 based on the 2009 actual field.
So for example, a record might have 'Total Salaries' in the description
field and $100,000 in the 2009 Actual field. Another record might have
$5,000 in the 2009 Actual field. If I only wanted the 1 top record, I would
need a way to select the first one while being able to do the rest for each
of the other values in the description field.
Is this even possible?
SELECT data.[Account-Sub account], data.[Account Unit], data.[Account Unit
Description], data.Account, data.[2007 Actual], data.[2008 Actual],
data.[2009 Actual], data.[2009 Budget], data.Description, data.[Description
Order], data.[LEVEL 1], data.[L1 Order], data.[LEVEL 2], data.[L2 Order],
data.[LEVEL 3], data.[L3 Order], data.[LEVEL 4], data.L4Order, data.[LEVEL
5], data.[LEVEL 6]
FROM data;
Based on this, is there any way to select the top 10 for the 2009 actual in
each of the different descriptions (data.description). So, the description
filed has several different values. What I want is for each of those values,
give me a list of the top 10 based on the 2009 actual field.
So for example, a record might have 'Total Salaries' in the description
field and $100,000 in the 2009 Actual field. Another record might have
$5,000 in the 2009 Actual field. If I only wanted the 1 top record, I would
need a way to select the first one while being able to do the rest for each
of the other values in the description field.
Is this even possible?