Hello
I have a table like this
userid visitorid time
1 10 2009-12-23
1 18 2009-12-06
1 18 2009-12-14
1 18 2009-12-18
1705 1678 2010-01-24
1705 1699 2010-01-24
1705 1700 2010-01-24
1712 1 2010-01-25
1712 640 2010-01-24
1712 925 2010-01-25
1712 1600 2010-01-24
1712 1630 2010-01-25
1712 1630 2010-01-24
1713 1 2010-01-24
1713 1 2010-01-23
I would like to perform a query such that it removes all the duplicates except for the latest one. I Hope you get an idea?
Example, after the query the table must be like this
userid visitorid time
1 10 2009-12-23
1 18 2009-12-18
1705 1678 2010-01-24
1705 1699 2010-01-24
1705 1700 2010-01-24
1712 1 2010-01-25
1712 640 2010-01-24
1712 925 2010-01-25
1712 1600 2010-01-24
1712 1630 2010-01-25
1713 1 2010-01-24