Hello guyz! :-)
I have a problem, so I thought you might help me out:
I have a table which stores the user data, when accessing the website.
The table has the following fields:
-id, request, host, address, agent, host, referer...
The table has many occurencies of "address" field which are duplicated (but not the entire row).
So, the point is that I'm trying to eliminate rows with superfluous "address" fields.
I've tried with
CREATE TABLE temp AS SELECT DISTINCT * FROM table;
but it does not remove duplicates, as it should remove only the identical rows.
I've tried with
CREATE TABLE temp AS SELECT DISTINCT address FROM table;
It removes duplicates, but is copies only the "address" field. All other fields are truncated.
So, how should I remove the duplicates and leave only the first occurencies od the "address" field.
Thanks.