Articles tagged with #subquery




Using Subqueries as Fields in CakePHP

From time to time when querying the database, you have to break the mold. CakePHP gives many options when it comes to complex conditions, but sometimes you need to push the boundaries. Recently I needed to return a subquery as a field name. It wasn't a high demand query, so …