0
활성 레코드에서 아래의 쿼리와 같은 여러 선택에 참여하는 것에 대한 참조를 찾을 수 없습니까?codeigniter active record 여러 select 문 결합
select a1.act, a1.date, a2.clos
from
(
SELECT count(AccountActiveDate) act, DATE_FORMAT(AccountActiveDate, '%Y-%m') date
FROM customert cust
GROUP BY YEAR(AccountActiveDate) , MONTH(AccountActiveDate)
) a1
join
(
SELECT count(AccountClosedDate) clos, DATE_FORMAT(AccountClosedDate, '%Y-%m') date
FROM customert cust2
GROUP BY YEAR(AccountClosedDate) , MONTH(AccountClosedDate)
) a2
ON a1.date = a2.date