I
IgorM
Hi
I have a table named tblCostsByYear with data as follows:
AccountName Year Value
Fuel 2009 234.56
Coal 2008 123.33
Insurance 2008 898.99
Fuel 2009 12.88
Land tax 2009 885.99
Insurance 2008 345.88
and so on (there are about 50 different account names)
What I want to do is query the database so it returns the costs in each year
grouped by the AccountName column in the way that only 70 per cent of the
total costs within in each year is grouped by its original account name, the
remainder (30 per cent) is grouped under the name 'Other costs'.
How can I do that?
Thanks for any help
Kind regards
IgorM
I have a table named tblCostsByYear with data as follows:
AccountName Year Value
Fuel 2009 234.56
Coal 2008 123.33
Insurance 2008 898.99
Fuel 2009 12.88
Land tax 2009 885.99
Insurance 2008 345.88
and so on (there are about 50 different account names)
What I want to do is query the database so it returns the costs in each year
grouped by the AccountName column in the way that only 70 per cent of the
total costs within in each year is grouped by its original account name, the
remainder (30 per cent) is grouped under the name 'Other costs'.
How can I do that?
Thanks for any help
Kind regards
IgorM