Skip to main content

Peliqan

Total Revenues by Department

SQL query for D2O

Calculate the total revenues for each department on a monthly basis.

SELECT department, month, SUM(revenue) as total_revenue FROM revenues_department_monthly GROUP BY department, month

D2O data model

Ready to get instant access to all your company data ?​

Connect 300+ sources, serve any BI tool, and give every AI agent one governed endpoint to read, and write back where the app supports it.