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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create new table based on table of email addresses

Status
Not open for further replies.

KennyRohan

Technical User
Apr 21, 2003
133
US
Does anyone have an SQL query allowing me to create a new table based on email addresses in a different table? Thank you.
 
What do you mean? You want to parse the email address into different fields? Or you just want a table of email addresses? But then again why? You'd have duplicate data in two different tables and that's against the protocols of normalization.
 
Guess I was to brief with my question. I have a large file containing name, address, company, emailaddress, etc. I have a second file of ONLY emailaddresses. I wish to use this email-only second file as a means on extracting records in the bigger file, which has much more information in it. Thank you for your reply.
 
If the second file is a subset of the email address records in the large file could you simply join, something like:
Code:
select largefile.*
from largefile right join emailonlyfile on largefile.email=emailonlyfile.email

or am I missing something?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top