A
aa
I have a table containing invoice number, line item and the value of that item.
One invoice can contain more tham one item
Query like that:
SELECT [InvoiceNo], Sum([ItemValue]) AS InvoiceTotal
FROM sales
GROUP BY [InvoiceNo];
lists all the invoices with invoice's totals
How do I make this query to calculate and show the GrantTotal (i.e. the sum of InvoiceTotal)?
I tried is as Sum(Sum([ItemValue])) but it returned an error sayng I cannot use nested sums
One invoice can contain more tham one item
Query like that:
SELECT [InvoiceNo], Sum([ItemValue]) AS InvoiceTotal
FROM sales
GROUP BY [InvoiceNo];
lists all the invoices with invoice's totals
How do I make this query to calculate and show the GrantTotal (i.e. the sum of InvoiceTotal)?
I tried is as Sum(Sum([ItemValue])) but it returned an error sayng I cannot use nested sums