Monday, September 28, 2009

Re: Self Join query

Hey, take a look at this: http://voveris.eu/2009/09/05/left-join-with-cakephp/ I am sure you find this handy.


On Mon, Sep 28, 2009 at 12:04, hunny <saurabh85mahajan@gmail.com> wrote:

Hi All,

I am new to cakephp. I would like to execute the following SELF Join
query.

SELECT B.* FROM `users` AS A LEFT JOIN `users` AS B
ON A.id = 2 where A.company_id = B.company_id

Could some one guide or refer some tutorials, on how to achieve this
in cake php.

Thanks in advance....




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: