Purpose-built SQL patterns for Microsoft 365 legal and compliance workloads, with emphasis on Microsoft Purview and Microsoft Entra integrations.
This repository demonstrates SQL techniques used to support eDiscovery, audit, records management, and identity governance reporting for law firms and legal service providers (LSPs).
Each section progresses from core SQL foundations into compliance- and audit-aligned use cases. Scripts are written with defensibility, traceability, and performance in mind, reflecting real-world legal and regulatory review standards. ``
Note: The numbered folders represent the planned learning progression. Initial scaffolding (
notebooks/,scripts/,src/) is already in place and will be organized into these sections as content is added.
01-foundations/— Data modeling, normalization, and indexing basics02-performance/— Query plans, statistics, and large-scale log performance03-compliance-audit/— Audit log schemas and chain-of-custody reporting04-purview-entra-integration/— eDiscovery and Entra governance reportingdatasets/— Small synthetic datasets for example queriesdocs/— Reference notes and diagrams
- Legal Service Providers (LSPs)
- Law firm litigation & compliance teams
- Microsoft Purview and Entra administrators
This repo supports Microsoft credentialed compliance work.