I have two tables Say Table-A and Table-B
Table-A id | Article Name |date 1 | ABC | 25/2/2011 2 | xyz | 26/2/2011 Table-B id | Comment
select Table_A.*, count(*) as 'NoC' from Table_A inner join Table_B on Table_A.id = Table_B.idart group by Table_A.id