I have this working SQL statement:
select oriseqs.newID from oriseqs WHERE oriseqs.singlets=1 AND
oriseqs.newID not in (select newID from cleanreport WHERE trash!="")
My question is how to avoid doing one select inside another in this particular case. I mean to rewrite the select statement in a way that there is no nested select.
Here is the relevant schema if needed:
CREATE TABLE cleanreport(newID TEXT, perc TEXT, inicoord INTEGER, endcoord INTEGER, ilen INTEGER, trash TEXT, comments TEXT);
CREATE TABLE oriseqs(newID TEXT, oldID TEXT, rawseq TEXT, singlets BOOLEAN);