I want to insert a row (_id
,rank
,date
) in sqlite through android.
But i want the row to be only one per day.
So if i select another rank today it will overwrite the row, so that only the last row is kept every day
example i insert
(rank,date) -> (3,20140322)
(rank,date) -> (5,20140322)
(rank,date) - (2,20140322)
(rank,date) - (3,20140323)
(rank,date) - (6,20140323)
i want in the sqlite to be only
(rank,date) - (2,20140322)
(rank,date) - (6,20140323)
how can i define the date column? and how i can proceed to obtain to have only the last value every day?