select count(*) from pbx_bilhetes where calldate::date = now()::date - 2 select count(*) from pbx_bilhetes where date = now()::date - 2 select a.* from pbx_bilhetes a, pbx_eventos_dacs b where b.uid2 = a.uniqueid and date = now()::date - 2 select a.* from pbx_bilhetes a, pbx_eventos_dacs b where b.uid2 = a.uniqueid and calldate::date = now()::date - 2