Mysql – Subquery Condition In Codeigniter 4
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