1
I am trying to assemble 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:
When I list the excluded he gives me the following result:
SELECT id,nf,status,data FROM documentos WHERE status LIKE ('%EXCLUIDO%')
However I should not consider the document whose nf is 000002, because it was then related so it cannot appear in the sql result, should show only the nf 000001.
Could someone help me?
And what it is is gone
relacionada
? Could you give us examples?– Marconi