дубли?
select cdrs.id
from cdrs
inner join clients ON clients.id = cdrs.clientid
WHERE 1=1
AND clients.resellerid = 2
AND cdrs.calldate between '2021-08-24 15:59:59.999' and '2021-08-31 15:59:59.999');
4829216 rows in set (47.815 sec)
Обсуждают сегодня