- Joined
- 4 Jan 2013
- Posts
- 3,783
SELECT CustomerNumber.invoices, COUNT(InvoiceNumber.invoices) AS NumberofInvoices,
FROM Invoices INNER JOIN customers
ON customernumber.invoices = customernumber.customers
GROUP BY CustomerNumber
HAVING CustomerNumber=1;
I'm trying to get the number of invoices sent to one person but its spitting up an error on line 2.
Anyone got a quick tip? Thanks.
FROM Invoices INNER JOIN customers
ON customernumber.invoices = customernumber.customers
GROUP BY CustomerNumber
HAVING CustomerNumber=1;
I'm trying to get the number of invoices sent to one person but its spitting up an error on line 2.
Anyone got a quick tip? Thanks.