Ver originalSELECT codrec, desrec, fentusa, fdevusaFROM recursos LEFT JOIN usan ON codrec=codrecusaWHERE (fentusa IS NULL) OR (fdevusa IS NOT NULL);