Código SQL:
Ver original
SELECT COUNT(C.contrato_rk) FROM ci_contact_history_cont_ext C WHERE EXISTS ( SELECT P.cell_package_sk,P.contrato_rk,P.CONTACT_DTTM FROM ci_contact_history_cont P WHERE ( P.cell_package_sk = C.cell_package_sk AND P.contrato_rk=C.contrato_rk AND P.CONTACT_DTTM=c.CONTACT_DTTM ) ) AND C.CONTACT_DTTM >= to_date( '19/12/2008 12:11:33','dd/mm/yyyy HH24:MI:SS')
Nota: La tabla CI_CONTACT_HISTORY_CONT_EXT tiene 32736252 de registros
Gracias, saludos