If I have a single record containing fields: name1, email1, name2, email2, can I query things so that I get a 2-column result of names v email addresses?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Access 2016: Mission impossible?
Home » Forums » AskWoody support » Productivity software by function » MS Access and database help » Access 2016: Mission impossible?
- This topic has 4 replies, 2 voices, and was last updated 9 years, 4 months ago.
AuthorTopicrogertrigg
AskWoody PlusJanuary 9, 2016 at 10:14 am #503971Viewing 1 reply threadAuthorReplies-
WSMarkLiquorman
AskWoody LoungerJanuary 9, 2016 at 10:25 am #1546445You need to read-up on database normalization. Your table design would seem to violate one of the basic principles, which results in your having to go through all sorts of manipulates to get what should be a simple result.
That said, this should work:
SELECT name1, email1 FROM yourtablename WHERE name1 is not null
UNION SELECT name2, email2 FROM yourtablename WHERE name2 is not null
ORDER BY name1 -
rogertrigg
AskWoody PlusJanuary 9, 2016 at 3:44 pm #1546509Thanks, Mark, that worked. Your point is well taken but I did take the example out of context. I’ll spell out the actual context because it must be a common scenario and therefore useful to others.
It’s a club membership database where each record might represent a single or double membership (husband & wife); each has their own email address. At the moment where I have two addresses per record they are in the same email field separated by a semi-colon. Where membership runs into 100s or 1000s you need to use a bulk email app such as Mail Chimp to send messages to all members. Mail Chimp doesn’t like two addresses separated by a ‘;’, so it becomes necessary to get all addresses into a single column from where they are exported to Mail Chimp via Excel. Or is there a more elegant way of coping with this scenario?
-
-
WSMarkLiquorman
AskWoody LoungerJanuary 9, 2016 at 6:09 pm #1546543Perfect normalization is seldom achievable. My favorite saying (from a fellow I knew from another forum and who is an Access MVP) is to “normalize until hurts, then denormalize”).
In your situation, perhaps it is not necessary that any name be associated with a membership in the main membership record? It is just a Membership#, start date, maybe a billing address, etc. Then a child table contains any individuals (along with email addresses, maybe phone#, etc. One immediate question you need to ask yourself is “can there be more than 2 individuals on a membership?” What if a child can be listed?
I’m not saying what you’ve done is necessarily wrong. It would be wrong if you didn’t consider alternatives. If you did consider alternatives and concluded that this design worked best given all factors, then that’s OK.
-
rogertrigg
AskWoody PlusJanuary 10, 2016 at 6:48 am #1546594Thanks again, Mark, for those thoughts. No, there are never more than 2 individuals per membership but my situation is complex. We keep a base address table (with about 15 fields) which lists not only members but non-members whose details we keep and who we would like to recruit. We also have many other contacts of one type or another. Thus, I have ‘categories’ table and use a query to pull out ‘members’, ‘non-members’, ‘overseas contacts’ etc. This structure has worked well for many years and I fear a child table as you suggest might complicate things a step too far. The SQL you gave in your first post provides the enhancement I need for our system for which I thank you again.
-
Viewing 1 reply thread -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
0Patch, where to begin
by
cassel23
1 hour, 50 minutes ago -
CFPB Quietly Kills Rule to Shield Americans From Data Brokers
by
Alex5723
4 hours, 50 minutes ago -
89 million Steam account details just got leaked,
by
Alex5723
13 hours, 14 minutes ago -
KB5058405: Linux – Windows dual boot SBAT bug, resolved with May 2025 update
by
Alex5723
13 hours, 23 minutes ago -
A Validation (were one needed) of Prudent Patching
by
Nibbled To Death By Ducks
4 hours, 21 minutes ago -
Master Patch Listing for May 13, 2025
by
Susan Bradley
6 hours, 45 minutes ago -
Installer program can’t read my registry
by
Peobody
6 hours, 20 minutes ago -
How to keep Outlook (new) in off position for Windows 11
by
EspressoWillie
2 hours, 8 minutes ago -
Intel : CVE-2024-45332, CVE-2024-43420, CVE-2025-20623
by
Alex5723
9 hours, 29 minutes ago -
False error message from eMClient
by
WSSebastian42
1 day ago -
Awoke to a rebooted Mac (crashed?)
by
rebop2020
1 day, 9 hours ago -
Office 2021 Perpetual for Mac
by
rebop2020
1 day, 10 hours ago -
AutoSave is for Microsoft, not for you
by
Will Fastie
7 hours, 24 minutes ago -
Difface : Reconstruction of 3D Human Facial Images from DNA Sequence
by
Alex5723
1 day, 14 hours ago -
Seven things we learned from WhatsApp vs. NSO Group spyware lawsuit
by
Alex5723
15 hours, 21 minutes ago -
Outdated Laptop
by
jdamkeene
1 day, 19 hours ago -
Updating Keepass2Android
by
CBFPD-Chief115
2 days, 1 hour ago -
Another big Microsoft layoff
by
Charlie
2 days ago -
PowerShell to detect NPU – Testers Needed
by
RetiredGeek
1 hour, 35 minutes ago -
May 2025 updates are out
by
Susan Bradley
5 minutes ago -
Windows 11 Insider Preview build 26200.5600 released to DEV
by
joep517
2 days, 6 hours ago -
Windows 11 Insider Preview build 26120.3964 (24H2) released to BETA
by
joep517
2 days, 6 hours ago -
Drivers suggested via Windows Update
by
Tex265
2 days, 6 hours ago -
Thunderbird release notes for 128 esr have disappeared
by
EricB
2 hours, 49 minutes ago -
CISA mutes own website, shifts routine cyber alerts to X, RSS, email
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
Apple releases 18.5
by
Susan Bradley
2 days, 8 hours ago -
Fedora Linux 40 will go end of life for updates and support on 2025-05-13.
by
Alex5723
2 days, 15 hours ago -
How a new type of AI is helping police skirt facial recognition bans
by
Alex5723
2 days, 15 hours ago -
Windows 7 ISO /Windows 10 ISO
by
ECWS
1 day ago -
No HP software folders
by
fpefpe
2 days, 23 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.