Jump to content

Need help with mysql query


keevitaja

Recommended Posts

there are 3 tables

 

campaigns

id int

 

cp_contacts

id int

campaign_id int

 

cp_friends

id int

cp_contact_id

 

i need to retrieve all rows from campaigns and add how many contacts campaigns has total and how many friends total connected to campaigns thrugh contacts . i can get out the cp_contacts count with left join. can anyone help me?

Link to comment
https://forums.phpfreaks.com/topic/250314-need-help-with-mysql-query/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.