KeesSmit
Programmer
- Sep 10, 2007
- 1
I would like to write a query in which i calculate the average over the result from an earlier query.
I have a transaction header table and a separate transaction lines table. I am trying to count an amount per transaction by summing the lines table, grouped by transactionnumber and would like to calculate the average over all of these sums.
Any suggestion?
Im using a Mysql that doesn't support VIEWs
I have a transaction header table and a separate transaction lines table. I am trying to count an amount per transaction by summing the lines table, grouped by transactionnumber and would like to calculate the average over all of these sums.
Any suggestion?
Im using a Mysql that doesn't support VIEWs