Subject: Query Quandry
Posted By: Ben Post Date: 2/9/2004 12:03:16 PM
I want to build a query like this:

Column A: Name, Column B: Value, Column C: Individual Column B Value / Total Value of Column B

However, I'm not sure how to construct Column C, currently I have:

Individual Column B Value / SUM(Column B Values)

But this just returns 1, where am I going wrong?

Thanks
Ben

Reply By: Clive Astley Reply Date: 2/9/2004 1:45:25 PM
Hello Ben,

Does the following do the trick for you?

SELECT Table1.Name, Table1.Value, [Value]/DSum("[Value]","Table1") AS Individual
FROM Table1;

Clive

Clive Astley
Reply By: Ben Reply Date: 2/10/2004 5:30:26 AM
Thanks Clive this worked great!

Go to topic 9556

Return to index page 952
Return to index page 951
Return to index page 950
Return to index page 949
Return to index page 948
Return to index page 947
Return to index page 946
Return to index page 945
Return to index page 944
Return to index page 943