Sorry, my english sentence was imprecise. :) I want the count of all
sub-entries AND THEIR sub-sub-entries.
So I want to know that C has 3 sub-nodes.
> -----Ursprüngliche Nachricht-----
> Von: Rob Desbois [mailto:robert.desbois@stripped]
> Gesendet: Mittwoch, 27. September 2006 15:48
> An: André Hänsel; mysql@stripped
> Betreff: re: Count of children
> Your sentence 'I want the count of all sub-entries for a
> specific entry' converts straight into SQL:
> 'I want'
> the count of all entries
> COUNT(*) FROM myTable
> with a specific parent
> WHERE parent_id = 5
> You've missed one of the major benefits of SQL - it's
> designed to read like an English sentence!
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: