Hi,
Let says, i've these following table
Student
ID | Name
-----------------
001 | Karen
002 | Robert
003 | Zana
BorrowBook
ID | BookName
--------------------
001 | PHP - Web Programming
001 | MySQL 5.0
002 | Pro MySQL
002 | Pro PHP
002 | Linux
I've try to query but Zana not retured the result.
I need to know, How many each student borrowing from BorrowBook. The expected result shown as following
ID | Name | No Of Book
---------------------------
001 | Karen | 2
002 | Robert | 3
003 | Zana | 0
Please help me ;(.