On Dec 29, 3:27 pm, "Olexandr Melnyk" <[EMAIL PROTECTED]> wrote:
Hello,

I need to get certain rows from table one with count of associated rows from
table two? The best thing I know so far (thanks to dudes from IRC) is to use
a subquery in list of fields I want to get. Does anyone know a better (more
Cake- but less SQL-based) way to do this?

----------------------------------
Olexandr Melnyk,http://omelnyk.net/

Isn't the search faclity of google groups great :D?

http://groups-beta.google.com/group/cake-php/search?group=cake-php&q=%22group+BY%22&qt_g=Search+this+group
http://groups-beta.google.com/group/cake-php/tree/browse_frm/thread/e35fe10fdefbb1db/062f199b0b6d7d5c?rnum=1&q=%22group+BY%22&_done=%2Fgroup%2Fcake-php%2Fbrowse_frm%2Fthread%2Fe35fe10fdefbb1db%2F6c08d567416cfbea%3Flnk%3Dgst%26q%3D%22group+BY%22%26rnum%3D1%26#doc_54591da44408c829

HTH,

AD7six
Please note:
The manual/bakery is a good place to start any quest for info.
The cake search (at the time of writing) erroneously reports less/no
results for the google group.
The wiki may contain incorrect info - read at your own risk (it's
mainly user submitted) :) You may get your answer quicker by asking on
the IRC Channel (you can access it with just a browser
here:http://irc.cakephp.org).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to