mysql - show multiple result of count -


I am trying to show the count of idParent in the child table where is the original table IDPorte of is equal to idContent of the original table.

SQL Request:

  Select Count (idpent) from content_copy_f idContent where content_copy_f.idParent (select idContent from content)  

But it does not display every count of each idParent in each line, with its result it shows a single line.

Try this query: -

  SELECT COUNT (idParent) , IdContent from content_copy_f where content_copy_f.idparent IN (Select content from content) content by IDContent;  

Hope this will help you.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -