Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

How To Write This Select In Query In Query Builder

$
0
0
Hi,

I'm trying to execute this query in querybuilder.

SELECT id, title, area_id From item WHERE item.area_id IN (SELECT item.area_id FROM item WHERE item.id = 3)


I've read the docs for the Where() In operator but i'm still having some trouble getting it to execute. What would be the correct way?

Thanks

Jonny

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>