Welcome Guest, Not a member yet? Register   Sign In
Nested selects with Active Record
#1

[eluser]dangermark[/eluser]
Hi all,

Is it possible to do nested select queries in Active Record?

Something that would generate:

Code:
SELECT * FROM table1 WHERE id IN (SELECT id FROM table2)

If it's not possible, an idea (or link) on the best way to accomplish this in CI would be great.

Thanks for your time.


Messages In This Thread
Nested selects with Active Record - by El Forum - 03-01-2011, 11:00 PM
Nested selects with Active Record - by El Forum - 03-02-2011, 12:12 AM
Nested selects with Active Record - by El Forum - 03-02-2011, 09:05 AM
Nested selects with Active Record - by El Forum - 03-02-2011, 02:24 PM



Theme © iAndrew 2016 - Forum software by © MyBB