Can anyone point me towards an example of removing duplicate records in a db?
I tried the above code supplied by
@rraswisak but could not get it to copy Distinct records ... Maybe I was doing it wrong .
Anyway , as a part of learning new .. I had a play with Unique, Insert Or Ignore.
The attached example is a BASIC example of extracting distinct / unique records from one table to another etc.
It might be of interest to you or others. If so it can be adapted to suit.
I cant emphasize more the need to backup your DB 's before you apply any of this ! I am no expert in this Field.
@Roger Daley .. you mention DBUtils above , I dont know how reliant you are on this in your project/s , But personally when i was new to B4X and knew nothing
of SQLite ect ... I played with DBUtils as well . I found I was spending more time trying to learn the workings of the Util. rather than SQL itself.
I ditched it and concentrated on SQLite directly .. happy that I did. This is my Personal Opinion.
Cheers.