Soldato
looking at the below code, is there a way to have 2 values as distinct?
i want to be able to say group postcode and the service they requested and count those, then group the postcode and another service we offer etc.
was hoping the below would give me what i'm after but it doesn't seem to work. googling this doesn't give me much help either
the reason for this is if i don't define the service required, then it's grouping say 6 different quotes for different services as one count.
PHP:
$sql="select count(DISTINCT(postcode)) as total from quotes WHERE origin = '$thisSite' ";
i want to be able to say group postcode and the service they requested and count those, then group the postcode and another service we offer etc.
was hoping the below would give me what i'm after but it doesn't seem to work. googling this doesn't give me much help either
PHP:
DISTINCT(postcode AND service)
the reason for this is if i don't define the service required, then it's grouping say 6 different quotes for different services as one count.