Any idea how to convert query below into Codeigniter?
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));
Tried but failed. Please help
2
Answers
I got the idea from codeigniter select