Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combining tables with multiple entries, sort for mailing list

Status
Not open for further replies.

jmcneary

MIS
Nov 14, 2000
1
US
I hope this is not too basic for this forum ... but here goes.

I have linked two tables and have multiple entries (8000) for many customers. I want to sort so that each customer comes up only one time so I can generate mailing lables for certain types of work.

At present, some customers show in the query 6 to ten times and I want to fix it so that I can have each customer who is selected only show up one time.

Greatly appreciate any help.

jack mcneary
 
Before I can help you can you please let me know what field names you are using in both tables. Also be more specific as to what sort of data you need as output.
 
Depending on what exactly you want you could use something like the following sql

select distinct [customer name],[customer address]
from customer
where [work type] = [required type]

If you can post more details of what you require and how your tables are laid out I will be able to customise this for your needs.
Richard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top