17/10/2025
📊 Company Employee Intranet SQL — Post #19 🌍
Some employees don’t just collaborate outside their department — they connect with multiple teams across the company. These are your cross-functional connectors.
In this post, we:
âś… Counted the number of distinct departments each employee works with
âś… Used COUNT(DISTINCT ...) to avoid double-counting
âś… Added STRING_AGG to show a clear list of departments collaborated with
âś… Ordered results so your most cross-functional staff appear first
🔎 Insights you now get instantly:
Engineering staff collaborating with both HR & Finance → strong connectors
HR staff collaborating with Finance → targeted cross-team role
Finance staff supporting Engineering → bridging finance & tech
Takeaway: Measuring project diversity highlights employees who act as bridges across multiple departments — the backbone of collaboration.
🔜 Next in SQL Series #20: We’ll build a company-wide collaboration map — combining all the patterns we’ve explored into one advanced query.