SELECT username, COUNT(*) FROM customers_tableGROUP BY username HAVING COUNT(*) > 1
Now you can use the above technique to find duplicate rows in more than one column. If you want to find duplicates only where username and email address are same then we can add the email column in it.
SELECT username, email, COUNT(*) FROM customers_tableGROUP BY username, email HAVING COUNT(*) > 1
SELECT username, COUNT(*) FROM customers_tableGROUP BY username HAVING COUNT(*) = 1
The same logic can be changed to find non duplicate rows only by changing the HAVING COUNT(*) > 1 to = 1, this will give us nonduplicated usernames.