So I have a users table where the user.username has many duplicates like:
username
and Username
and useRnAme
john
and John
and jOhn
That was a bug and these three records should have been only one.
I'm trying to come up with a SQL query that lists all of these cases ordered by their creation date, so ideally the result should be something like this:
username jan01
useRnAme jan02
Username jan03
john feb01
John feb02
jOhn feb03
Any suggestions will be much appreciated