I have a table defined as
"CREATE TABLE \(tableNAME) ("
+ " maingroup Text NOT NULL COLLATE NOCASE,"
+ " subGroup Text NOT NULL COLLATE NOCASE,"
+ " levelFile Text NOT NULL COLLATE NOCASE,"
+ " levelName Text NOT NULL COLLATE NOCASE,"
+ " locked Boolean NOT NULL DEFAULT true,"
+ " solved Boolean NOT NULL DEFAULT false,"
+ "PRIMARY KEY (maingroup,subgroup,levelfile))"
I need to set “locked” to true for all but the first 4 records of each (maingroup,subgroup) those would be set to false. Unfortuantly the levelname values are not consistent enough to be used for this purpose