UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

> need unique zip code for each salesperson from listing of all customers    
 
   
rth1125
post Jul 13 2009, 02:22 PM
Post #1

New Member
Posts: 4



I have a listing of over 35,000 customers in my database. I am trying to get it filtered to where I get a listing of each zip code that each one of my sales people have customers in. The database does have listing of each customer #, sales info, address info, and each individual sales persons distinct #. I am just at a block on this and it should be so easy. How should I write this query, by the way it needs to be a make table query. Thanks in advance for any help that anyone can give me.
Go to the top of the page
 
+
 
Start new topic
Replies (1 - 6)
debra_dixon
post Jul 13 2009, 02:41 PM
Post #2

UtterAccess Guru
Posts: 637
From: Virginia



have you tried a group by query? grouping by Zip and sales person?
Go to the top of the page
 
+
Bob_L
post Jul 13 2009, 03:13 PM
Post #3

Utterly Banned
Posts: 7,038



Also, why does it need to be a "Make Table" query? Are you aware that you can use a query in 99.99% of the places you can use a table?
Go to the top of the page
 
+
rth1125
post Jul 13 2009, 04:29 PM
Post #4

New Member
Posts: 4



I have not tried the group by, but will that give me limit the output to one unique entry for each zip code that each sales person is in?
It needs to be a make table query because I am importing that table into a mapping program for our contact management. Sorry about not explaining that in the first statement.
Go to the top of the page
 
+
Bob_L
post Jul 13 2009, 04:35 PM
Post #5

Utterly Banned
Posts: 7,038



QUOTE
It needs to be a make table query because I am importing that table into a mapping program for our contact management. Sorry about not explaining that in the first statement.
So you are importing using the mapping program and not exporting using Access and the mapping program does not allow you to select a query instead of a table?
Go to the top of the page
 
+
rth1125
post Jul 13 2009, 04:48 PM
Post #6

New Member
Posts: 4



You are correct on both statements, I didn't get to choose the mapping program so I am using what I have been given. Do you think I can do this with a select distinct statement? I am just really struggling with the logic on this one for some reason.
Go to the top of the page
 
+
rth1125
post Jul 13 2009, 05:21 PM
Post #7

New Member
Posts: 4



I finally got it with my SQL statement using the select distinct! Thanks to all who made the comments!
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 24th May 2013 - 09:47 AM