forked from SimplesIP/pabx-app
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
371 B
15 lines
371 B
2 years ago
|
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
|