I have a table where i insert newsitems from a game and timestamp each row on insert.
Problem with this is that each row become unique with the timestamp and i want to remove the duplicates so i only have rows with changes shown.
Anyone know how i can solve this?
Here is the create statement for the table
CREATE TABLE `ranklist_alliance_archive` (
`serverid` int(11) NOT NULL,
`resetid` int(5) DEFAULT NULL,
`rank` int(11) NOT NULL,
`number` int(11) NOT NULL,
`name` varchar(45) DEFAULT NULL,
`land` varchar(45) DEFAULT NULL,
`networth` varchar(45) DEFAULT NULL,
`tag` varchar(45) DEFAULT NULL,
`gov` varchar(45) DEFAULT NULL,
`gdi` varchar(45) DEFAULT NULL,
`protection` varchar(45) DEFAULT NULL,
`vacation` varchar(45) DEFAULT NULL,
`alive` varchar(45) DEFAULT NULL,
`deleted` varchar(45) DEFAULT NULL,
`created_ts` timestamp NULL DEFAULT current_timestamp()
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
Rows are: serverid, resetid, rank, number, name, land, networth, tag, gov, gdi, protection, vacation, alive, deleted, created_ts