celestedeeva
Programmer
- Aug 27, 2007
- 14
Hello all,
I have the following table
Type QTY
1 50
2 1000
3 600
5 800
9 1000
12 2500
50 1000
51 1000
55 20
What type of query could I run so that I would end up with the following?
Type QTY
1 Distribution 50
2 Distribution 50
3 Distribution 50
5 Distribution 50
12 Distribution 50
Balance 2020
So I need to make a table listing the first 5 records as its associated number concatenated with the word "distribution" and then any beyond record 5 I need to assign as "balance" and the associated quantity is the sum of the QTY field for all records above record 5.
Any help is greatly appreciated.
Celeste.
I have the following table
Type QTY
1 50
2 1000
3 600
5 800
9 1000
12 2500
50 1000
51 1000
55 20
What type of query could I run so that I would end up with the following?
Type QTY
1 Distribution 50
2 Distribution 50
3 Distribution 50
5 Distribution 50
12 Distribution 50
Balance 2020
So I need to make a table listing the first 5 records as its associated number concatenated with the word "distribution" and then any beyond record 5 I need to assign as "balance" and the associated quantity is the sum of the QTY field for all records above record 5.
Any help is greatly appreciated.
Celeste.