D
DKS
Hi,
I have a table with following 3 columns
Date
Value 1
Value 2
Value 1 and Value 2 are numeric fields (zero decimals). For a given date
there can be many records.
I want a query that gives me values grouped by DATE field. Thus one line
for each Date. And the second column in the query I need the sum of Value 1
fields divided by the sum of Value 2 fields.
E.g.
If for 1/1/2009 I have following data
1/1/2009 10 4
1/1/2009 15 5
1/1/2009 10 7
1/1/2009 3 0
Then I need in the output of the query
1/1/2009 2.375 (=38/16)
All help appreciated.
I have a table with following 3 columns
Date
Value 1
Value 2
Value 1 and Value 2 are numeric fields (zero decimals). For a given date
there can be many records.
I want a query that gives me values grouped by DATE field. Thus one line
for each Date. And the second column in the query I need the sum of Value 1
fields divided by the sum of Value 2 fields.
E.g.
If for 1/1/2009 I have following data
1/1/2009 10 4
1/1/2009 15 5
1/1/2009 10 7
1/1/2009 3 0
Then I need in the output of the query
1/1/2009 2.375 (=38/16)
All help appreciated.