initiatives
Schema reference for the initiatives SQL view — one row per initiative grouping policies around a shared goal or compliance requirement.
Last updated
SELECT *
FROM initiatives
WHERE owner = 'security-team@example.com';SELECT
i.id AS initiative_id,
i.description,
COUNT(p.id) AS policy_count
FROM initiatives i
LEFT JOIN policies p ON i.id = p.initiative_id
GROUP BY i.id, i.description
ORDER BY policy_count DESC;