3
is the following, I have two tables, a so-called topical and other comments(which has a foreign key from the topical table), I wanted to list the topics by sorting them by the amount of comments each. I broke my head and could not do, I appreciate the help from now on. Thanks!
Put your query there for us to help you
– Diego Souza
The answers worked perfectly! Thanks anyway!
– Diego Vieira
I made a small change... to return 0 (zero) if you don’t have any comments. Now it’s better. Let me know if you need to improve on your appointment.
– Allan Andrade