MySQL Forums
Forum List  »  Newbie

Re: Re-writing of SQL Query
Posted by: Roland Bouman
Date: August 06, 2005 08:05PM

select p.id
,p.title
,count(c.id) as _hcf
from tbl p
left join tbl c
on c.pid = p.id
where p.pid = 1
group by p.id
,p.title

Options: ReplyQuote


Subject
Written By
Posted
August 06, 2005 07:15PM
Re: Re-writing of SQL Query
August 06, 2005 08:05PM
August 07, 2005 11:03AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.