I am trying to mount a report, where I need to list deleted documents, I have the following sql statement:
SELECT id,nf,status,data FROM documentos
For example I have the following results:
Whenyou'rereadytheexcluded,itgivesmethefollowingresult:
SELECTid,nf,status,dataFROMdocumentosWHEREstatusLIKE('%EXCLUIDO%')
But I should not consider the document whose nf is 000002, because it was listed next, so it can not appear in the sql result, it should only show nf 000001.
Could anyone help me?