ayvegh
09-20-2008, 11:34 PM
Hi,
I have a MySQL table which has a username column.
It's a log, so many of the usernames have been logged twice.
Now, I have changed the log format, so that only one entry is necessary for each user.
My question: How can I SELECT all of the rows which have a username which is duplicated in another row?
I'd like to be able to have my script read through the data and throw out what I don't need, and merge everything else, but I need a way to get only the rows which are duplicated.
Thanks in advance,
ayvegh
I have a MySQL table which has a username column.
It's a log, so many of the usernames have been logged twice.
Now, I have changed the log format, so that only one entry is necessary for each user.
My question: How can I SELECT all of the rows which have a username which is duplicated in another row?
I'd like to be able to have my script read through the data and throw out what I don't need, and merge everything else, but I need a way to get only the rows which are duplicated.
Thanks in advance,
ayvegh