How to select rows with \u0000 (null character) in a varchar column in SQLite?

Advertisements Long story short, lots of bogus data entered the SQLite database over time, where there is valid data before a null character in a varchar column – and then bogus data afterwards. I’m using \u0000 to represent the null character here. validData\u0000bogusData I need to clean the dataset so that the data after null… Read More How to select rows with \u0000 (null character) in a varchar column in SQLite?

How to select rows with \u0000 (null character) in a varchar column in SQLite?

Advertisements Long story short, lots of bogus data entered the SQLite database over time, where there is valid data before a null character in a varchar column – and then bogus data afterwards. I’m using \u0000 to represent the null character here. validData\u0000bogusData I need to clean the dataset so that the data after null… Read More How to select rows with \u0000 (null character) in a varchar column in SQLite?

Need a SQL select statement to return rows that have the same id in one column and distinct value in another column

Advertisements I have a table that contains a group number column and a data column: GROUP DataColumn 1 NULL 1 NULL 1 "hello" 1 NULL 2 "bye" 2 "sorry" 3 NULL 3 NULL 3 NULL I want to return the string in the DataColunm as long as all rows in that group contain a string… Read More Need a SQL select statement to return rows that have the same id in one column and distinct value in another column