Thanks PHV,
It's really appreciated sorry I didn't reply sooner but I was away for the last couple of days.
It seems like it would do what I want it to do, will give it a shot.
Yeah select count(DISTINCT) seems like something that would fix my problem.
SELECT CUSTOMER_TYPE.TypeDescription, Count(CUSTOMER.customerID) AS [NbCustomer], Sum(INVOICES.AmmountBilled) AS [Total ammount for type]
FROM CUSTOMER_TYPE INNER JOIN (CUSTOMER INNER JOIN INVOICES ON...
Hi everyone,
I've been trying to write this query for a little while now and just can't get it to work. The simplified table schema looks something like this:
CUSTOMER
--------------
customerID
customerName
customerType
INVOICES
--------------
customerID
AmmountBilled
CUSTOMER_TYPE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.