I have a table like:
orderid, custname, zipcode, orderdate.
I want to count to do like this:
select orderdate, count(distinct custname,zipcode)
from a_able
group by orderdate.
Bu this does not work.
I am trying to get for an order how many distinct custname were their in in zip code.
Alternative is to do:
select orderdate, zipcode, count(distinct custname)
from a_table group by orderdate.
But this can not be used as I have some other settings in the program. Any hints?
orderid, custname, zipcode, orderdate.
I want to count to do like this:
select orderdate, count(distinct custname,zipcode)
from a_able
group by orderdate.
Bu this does not work.
I am trying to get for an order how many distinct custname were their in in zip code.
Alternative is to do:
select orderdate, zipcode, count(distinct custname)
from a_table group by orderdate.
But this can not be used as I have some other settings in the program. Any hints?