Here's a challenge for you query experts. It is considered cheating if you use code. Given the following query columns:
Name Value Total
There will be duplicates of column "Name". The challenge is to come up with the expression for the "Total" column that will add the numbers in the "Value" column sumed by "Name". For example:
Although it doesn't really matter, for the sake of this challenge assume, "Name" comes from "MyNames" table and "Value" comes from a related table called "MyValues".
What is the expression for the "Total" column that will yield the above results? TIA.
Name Value Total
There will be duplicates of column "Name". The challenge is to come up with the expression for the "Total" column that will add the numbers in the "Value" column sumed by "Name". For example:
Code:
Bob 5 8
Dave 2 5
Bob 1 8
Sam 6 6
Ed 4 4
Dave 3 5
Bob 2 8
What is the expression for the "Total" column that will yield the above results? TIA.