Hi,

I have had this problem for a few weeks now, and I am not satisfied with my 
current solution. I have a table which has length and price attributes. It 
is linked to other tables with hasMany relationships. 

What I want to do is to retrieve the minimum and maximum values for both 
aforementioned attributes in one query.I have succeeded to do this in 4 
separate queries, but I have not succeeded to reduce this to one query.

Here is what I currently have,  http://bin.cakephp.org/view/1004813660.

I would appreciate any help.

Roland. 

-- 
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 others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to