I have the following JCR-SQL2-Query:
SELECT * FROM [nt:base] AS nodes WHERE NAME(nodes) = 'NameOfTheNode'
Right now I get all the nodes with the name 'NameOfTheNode'. But I want to limit the results to nodes that are empty respectively have no child nodes.
How could I do that?