By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,842 Members | 2,154 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,842 IT Pros & Developers. It's quick & easy.

Access SQL input records without a join

P: 9
Hi! Thanks for checking out my dilemma!
I know I have done this before (in another db) but I can't recall exactly.
What I have are two sources: a query of open invoices that creates a customer statement and a table of customer contacts.
When I export to excel, I want to take the contacts with me - but I do not want to duplicate my invoice records for all the contacts.

The query fields(invoice) are ID, ACCT, INVNO,INVDATE, INVAMT, AGE, DUE
The table fields(contact) are CID, ACCT, NAME, EMAIL
One-to-many contacts to ACCT

What is the sql to select the ACCT from table and insert as a new column name ?
I would like to find all of the CID's for ACCT and show them in the record i.e name1, name2, name3

Did I give enough information for a response????
Dec 21 '18 #1
Share this Question
Share on Google+
1 Reply


NeoPa
Expert Mod 15k+
P: 31,306
So you export the invoices in one process and then, separately, export the relevant contacts. What is it that you're confused about?
Dec 22 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.