Forums / Developer / Fetching notification count by object / Comment45079
Kåre Køhler Høvik
Friday 06 January 2006 2:47:20 am
Hi
You can get the # of subtree notifications to a specific node using this SQL (mysql):
SELECT count( DISTINCT a.user_id ) as count FROM ezsubtree_notification_rule a, ezcontentobject_tree b WHERE b.node_id=NODE_ID AND b.path_string like concat( '%/', a.node_id , '/%' );
( replace NODE_ID with you node ID. )
Kåre Høvik