select D.ccodcue, P1.cdescue, P1.nanacue, D.ndebe, D.nhaber, D.nhaber nmonto, D.nhaber nrecla, 0 as nesrecla from cf_diariol as D,cf_plan as P1 where D.ccodcue = P1.ccodcue and length(ccodenfi) > 0 and 0 = 1
/* CON INNER JOIN */
select D.ccodcue, P1.cdescue, P1.nanacue, D.ndebe, D.nhaber, D.nhaber nmonto, D.nhaber nrecla, 0 as nesrecla from cf_diariol D inner join cf_plan P1 on D.ccodcue = P1.ccodcue where 0 = 1