SQLScholar
Programmer
Hey all,
If i have a database of records which have
pk Recordnum Status ValueA ValueB
1 1 P 10 20
2 1 C 10 20
3 2 P 200 10
4 3 P 120 15
5 3 P 10 1
6 3 C 100 10
P stands for pending - C for complete. Now if i wanted a sheet of all the records where the P for a record num (there may be mulitple values, so summed) doesnt add up to the C.
So in this case it would give me
pk Recordnum Status ValueA ValueB
4 3 P 30 6
Which is the difference between total pending, and total complete for a record.
Any help much appreciated
Dan
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!
If i have a database of records which have
pk Recordnum Status ValueA ValueB
1 1 P 10 20
2 1 C 10 20
3 2 P 200 10
4 3 P 120 15
5 3 P 10 1
6 3 C 100 10
P stands for pending - C for complete. Now if i wanted a sheet of all the records where the P for a record num (there may be mulitple values, so summed) doesnt add up to the C.
So in this case it would give me
pk Recordnum Status ValueA ValueB
4 3 P 30 6
Which is the difference between total pending, and total complete for a record.
Any help much appreciated
Dan
----------------------------------------
There are 2 types of computer, the prototype and the obsolete!!