Как мне преобразовать запрос ниже в codeigniter? < /p>
select agency from agency
where agency not in (
SELECT agency FROM trip
where trip_type = 'local trip'
group by trip_type, agency
having count(agency)=(select count(*) from role)
);
Подробнее здесь: https://stackoverflow.com/questions/784 ... eigniter-4