"DbHost": "127.0.0.1",
"DbPort": "5480",
"DbUser": "phonesystem",
"DbPassword": "XZg9CE3GJRCfh",
"DbName": "database_single"
SELECT * FROM callcent_queuecalls ORDER BY idcallcent_queuecalls DESC LIMIT 50
select
count(*) as vsego,
dst_display_name
from(
select
distinct (c.call_id), c.dst_display_name
from public.cl_segments_view c
where cast(c.start_time as date)> (now() - '7 days'::interval)
and (c.dst_display_name in (select name FROM public.queue ) )
limit 100) as sub
group by dst_display_name