G
Guest
Hi. I'm doing counts of how many sold products fall within a given range of
product numbers. For instance the query SQL below gives me a count of how
many products had product numbers between 12500 and 13717.
My problem is that I'm trying to do these counts for several different
ranges, and can't figure out how to do it all in one query. I should mention
that the ranges over which I'm counting aren't always the same either (ie,
they're not at regular intervals).
So right now I'm doing a separate query for every single range! Is there
some way I can do this all in one query?
Thanks in advance!
SELECT DISTINCTROW Count(ProductSales.ProductNumber) AS RangeOne
FROM ProductSales
WHERE (((ProductSales.ProductNumber)>12500 And
(ProductSales.ProductNumber)<13717));
product numbers. For instance the query SQL below gives me a count of how
many products had product numbers between 12500 and 13717.
My problem is that I'm trying to do these counts for several different
ranges, and can't figure out how to do it all in one query. I should mention
that the ranges over which I'm counting aren't always the same either (ie,
they're not at regular intervals).
So right now I'm doing a separate query for every single range! Is there
some way I can do this all in one query?
Thanks in advance!
SELECT DISTINCTROW Count(ProductSales.ProductNumber) AS RangeOne
FROM ProductSales
WHERE (((ProductSales.ProductNumber)>12500 And
(ProductSales.ProductNumber)<13717));