/cakephp.1045679.n5.nabble.com/Help-with-Complex-SQL-FIND-COUNT-tp4498224p4501735.html
Sent from the CakePHP mailing list archive at Nabble.com.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help
I need a way in CakePHP to find if a 1-Many record has more that that
one entry in the Many Table...
This what what i would like to do in Cake...
SELECT *, COUNT(`tank_id`) AS NumOccurrences FROM `shipments` LEFT
JOIN `tanks` ON (`shipments`.`tank_id` = `tanks`.`id`)
GROUP BY `tank_id`
HAVING ( C