|
|
Joined: Feb 2003
Posts: 64
Power User
|
Power User
Joined: Feb 2003
Posts: 64 |
I have users in my database that have signed up twice, using two different usernames, but the same email address. Is there a query that I could run that would list all accounts with the same email addresses so that I could manually delete one? Thanks.
|
|
|
|
Joined: Jun 2001
Posts: 3,273
That 70's Guy
|
That 70's Guy
Joined: Jun 2001
Posts: 3,273 |
I think it would be something like this:
select t1.U_Number,t1.U_Username,t2.U_Number,t2.U_Username,t1.U_RegEmail from w3t_Users as t1, w3t_Users as t2 where t1.U_RegEmail = t2.U_RegEmail and t1.U_Number != t2.U_Number
I haven't tried the query but I think it will work.
Anyone else have a better way? I'm probably behind the times or need to read more... LoL
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I was just trying to figure this out. I didn't know about the t1 and t2 stuff though. Thanks for learnin' me! BTW - I believe your query works. I just tested it and it didn't return any errors. Of course, I don't allow duplicate emails, but I changed != to = and it returned everyone.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 1,157
Joined: July 2001
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|