SELECT document_name FROM documents WHERE document_code NOT IN (SELECT document_code FROM document_sections)
What are the names of documents that do not have any sections?
SELECT document_name FROM documents WHERE document_code NOT IN ( SELECT document_code FROM document_sections )
select document_name from documents where document_code not in ( select document_code from document_sections )
What are the names of documents that do not have any sections ?