Answers for "how to order by depending on another table count"

0

how to order by depending on another table count

SELECT bloggers.*, COUNT(post_id) AS post_count
    FROM bloggers LEFT JOIN blogger_posts 
    ON bloggers.blogger_id = blogger_posts.blogger_id
    GROUP BY bloggers.blogger_id
    ORDER BY post_count
Posted by: Guest on February-28-2022

Code answers related to "how to order by depending on another table count"

Browse Popular Code Answers by Language