J
JimmyKoolPantz
for some reason I can't seem to figure this out.
Situation: I'm using vb.net to create a query that will populate a
dataset with zipcode and count that have unique first 3 digits. I want
to create an audit that shows the client that he has so many reocords
in a 3 digit zip.
sampe data
name | zip
john 32118
joe 32114
mike 32112
tom 41111
tim 41121
table needed
3digitzip | count
321 3
411 2
I've tried a few things but I'm just running in circles and losing what
logic I though I had.
my query somewhat looks like this but i have tried a few other querys
that did not work.
QY = "select Distinct(Left(zip,3) as ZIPCODE, count(left(zip,3) as
QUANTITY"
The afformentioned query does not give me the totals I need.
I've tried something like:
QY = "select Distinct(Left(zip,3) as ZIPCODE, count(distinct
left(zip,3) as QUANTITY"
on the above querry I would get an error in visual studio "missing
opererator" error
Situation: I'm using vb.net to create a query that will populate a
dataset with zipcode and count that have unique first 3 digits. I want
to create an audit that shows the client that he has so many reocords
in a 3 digit zip.
sampe data
name | zip
john 32118
joe 32114
mike 32112
tom 41111
tim 41121
table needed
3digitzip | count
321 3
411 2
I've tried a few things but I'm just running in circles and losing what
logic I though I had.
my query somewhat looks like this but i have tried a few other querys
that did not work.
QY = "select Distinct(Left(zip,3) as ZIPCODE, count(left(zip,3) as
QUANTITY"
The afformentioned query does not give me the totals I need.
I've tried something like:
QY = "select Distinct(Left(zip,3) as ZIPCODE, count(distinct
left(zip,3) as QUANTITY"
on the above querry I would get an error in visual studio "missing
opererator" error