|
Hi,
I have a question...and I'm a little rusty on my SQL.
I have a database in MS-SQL Express 2005 which have several email fields as columns...
ex: ID, UserName, Email, Contact1Email, Contact2Email
I want to do a query that will give the results as...
ID, UserName, EmailField
Where EmailField will be a separate record for each of the email columns above.
Ex: Record 1 - ID, UserName, EmailField (contains Email)
Record 2 - ID, UserName, EmailField (Contains Contact1Email)
Record 3 - ID, UserName, EmailField (Contains Contact2Email)
Record 4 - ID (Next Record), UserName, EmailField (Contains Email)
and so on.
Can anyone help?
It would be great to do it killing duplicate emails.
Thanks
Donna Z
|