show count row with same id in another mysql table

show count row with same id in another mysql table

saee2838saee2838 Posts: 18Questions: 6Answers: 0

i want show in one column , count of row with same id in another mysql tabel.
how i can do it
is any example for it?

Answers

  • allanallan Posts: 54,171Questions: 1Answers: 8,455 Site admin

    If you are using the Editor libraries to populate the table, you can use an Mjoin and then just use the length of the resulting array.

    If you aren't using our libraries, you'd need to modify whatever SQL query you are using to get the data - a CTE might be required, but it depends on the database you are using.

    Allan

Sign In or Register to comment.