MySQL Forums
Forum List  »  Newbie

Re: Sql query help
Posted by: jason greenwood
Date: August 17, 2016 09:19AM

Peter,
Your amazing that's great, that works. I didn't put in the query I should have copied which also includes another table named leader. Is this just as easy to add a further statement or coma after the join? This is what it should have looked like DOH I'm sorry.

SELECT
Company_id.Company_name,
COUNT(child.Counting) AS `COUNT(Counting)`,
COUNT(leader1.Counting) AS `COUNT(Counting)1`
FROM company_id
INNER JOIN child ON company_id.Company_name = child.company
INNER JOIN leader1 ON company_id.Company_name = leader1.company
GROUP BY company_id.Company_name

Options: ReplyQuote


Subject
Written By
Posted
August 16, 2016 03:38PM
August 16, 2016 04:06PM
Re: Sql query help
August 17, 2016 09:19AM
August 17, 2016 09:35AM
August 17, 2016 10:37AM
August 17, 2016 12:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.