Welcome Guest, Not a member yet? Register   Sign In
How to count the number of 02 tables
#2

This makes no sense at all. Huh

example
Code:
SELECT
    category.name,
    count(book.id)
FROM
    category
INNER JOIN
    book
ON category.id = book.id
GROUP BY category.id

cat_a 12
cat_b 10
Reply


Messages In This Thread
RE: How to count the number of 02 tables - by Paradinight - 07-10-2016, 07:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB