Search
 
SCRIPT & CODE EXAMPLE
 

SQL

find duplicate users by email address in mysql

SELECT users.name, users.uid, users.mail, from_unixtime(created)
FROM users
INNER JOIN (
  SELECT mail
  FROM users
  GROUP BY mail
  HAVING count(mail) > 1
) dupes ON users.mail = dupes.mail
ORDER BY users.mail;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql order by where condition 
Sql :: sql DATE = GETDATE() 
Sql :: how to see the query of a view in mysql 
Sql :: postgres add column integer 
Sql :: oracle auto increment primary key 
Sql :: mysql regex replace 
Sql :: get server date mysql 
Sql :: update column data type postgres 
Sql :: change column name sql server management studio 
Sql :: oracle sql date get month 
Sql :: mysql concatenate null 
Sql :: create or replace table sql 
Sql :: SQL Count UNIQUE Rows 
Sql :: add primary key with auto increment sql server 
Sql :: oracle convert int to date 
Sql :: how to assign date field for table in mysql 
Sql :: SQL CREATE UNIQUE INDEX for Unique Values 
Sql :: datediff in sql server 
Sql :: create table in microsoft sql server 
Sql :: postgresql add column 
Sql :: mysql multiple count 
Sql :: sql select into statement 
Sql :: mysql show views 
Sql :: mysql between 
Sql :: mysql group by range 
Sql :: convert varchar column to int in sql server 
Sql :: ValueError: A string literal cannot contain NUL (0x00) characters. 
Sql :: sql convert float to string 
Sql :: mysql check if lowercase 
Sql :: How to pass password to mysql command line 
ADD CONTENT
Topic
Content
Source link
Name
4+9 =