Hello,

I have Events view.ctp where i display list of Events (Event Name ,
Location and Date)

In EventRegistration table i have the users registered for each event.
(Event id , UserId)

Now in my EventView.ctp i need to add no. of registered users for each
event.

the SQL query will be

Select a.EventName,a.EventLocation,a.Date,
(Select count(*) from EventRegistraion b where b.EventId = a.EventID)
as userscount
 from Events a.

How do i write the equivalent of this query in cakephp?

Please Help

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to