CodeIgniter Forums
AR subquery - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: AR subquery (/thread-47521.html)



AR subquery - El Forum - 12-12-2011

[eluser]Krystian[/eluser]
Hi,

how to translate it into ActiveRecord

Code:
SELECT * FROM menu WHERE id NOT IN ( SELECT parent FROM menu )

br