I'm not sure if this really possible to do in sqlite as I've looked around.
Here's what I have as a part of a table (NONE are PK, FK, or IDs, just regular text data):
col1 col2 col3
foo1 bar1 foobar1
foo1 bar1 foobar2
foo1 bar1 foobar3
I was able to select the count of foo1 and bar1by doing
SELECT col1, col2, COUNT(*)
FROM table1
GROUP BY col1
HAVING COUNT(*) > 1;
to find the duplicate columns, but my end goal is to combine the data in column 3 into one column, delimited by slashes i.e foobar1/foobar2/foobar3, and delete all but 1 of the selected rows so the output would be:
col1 col2 col3
foo1 bar1 foobar1/foobar2/foobar3
This is pretty difficult I think to do solely in SQLite, but maybe it is possible? If not, how would you do this in a a regular programming language like Java? I am doing Android programming so I am able to access the database and do queries.