A
Alexander
I have a table with the following logical structure:
Name...Number eaten of apples......Number of eaten oranges.....All fruits
Mike...............3..............................
...........4...........................7
John...............5..............................
...........3...........................8
Peter..............2..............................
...........2...........................4
Phil.................1............................
.............4...........................5
Question 1:
Can I calculate in a query sum totals for apples (or oranges or all fruits)
eaten by Mike and Peter together (in one record) and ignore John and Phil?
For example:
Name...Number eaten of apples......Number of eaten oranges.....All fruits
Mike+John.............8..............................
...........7...........................15
Question 2:
How can I get sum totals for all excluding just Peter? Or Peter and Phil?
For example
All except
Peter..........9........................11........................20
Your help will be very much appreciated!
Aleksandr
Name...Number eaten of apples......Number of eaten oranges.....All fruits
Mike...............3..............................
...........4...........................7
John...............5..............................
...........3...........................8
Peter..............2..............................
...........2...........................4
Phil.................1............................
.............4...........................5
Question 1:
Can I calculate in a query sum totals for apples (or oranges or all fruits)
eaten by Mike and Peter together (in one record) and ignore John and Phil?
For example:
Name...Number eaten of apples......Number of eaten oranges.....All fruits
Mike+John.............8..............................
...........7...........................15
Question 2:
How can I get sum totals for all excluding just Peter? Or Peter and Phil?
For example
All except
Peter..........9........................11........................20
Your help will be very much appreciated!
Aleksandr