How can we implement CActive Record for this query in yii
SELECT *
FROM location WHERE locationid NOT IN
( SELECT location
FROM memberlocation
WHERE memberid = 2371)
How can we implement CActive Record for this query in yii
SELECT *
FROM location WHERE locationid NOT IN
( SELECT location
FROM memberlocation
WHERE memberid = 2371)
Try this
Or you could do something like this