select vto_pago,nro_reg,f_pago
from facturas
where
   nro_reg matches "1997*" and
   vto_pago > "1/4/97" and vto_pago is not null
and vto_pago != f_pago
and tipo_doc_pago = "1"
