I need to find a function. the scenario is :
I have 2 table. 1. news table 2. news_comment table
need to find the most commented 20 news.
the news_comment table has the relationship with the news table
Thank you
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
try the give query. it may help.
Top 20 give first 20,
join lin 2 tables
count(news_comment.id) give no of comment