Useful DB Queries for Drupal Applications
Submitted by system on Wed, 03/08/2023 - 13:04Show grouped node counts based on OG group ids for nodes created after a particular time stamp
select gid, count(*) from og_membership inner join node on og_membership.etid = node.nid and node.created >= 1678127400 group by gid;
Show node type specific node count list
select type,count(*) from node group by type;
Show group membership wise node counts