Calculate the average task expenses for each department.
SELECT Departments.name, AVG(TaskExpenseTypes.amount) FROM Departments JOIN Employees ON Departments.id = Employees.department_id JOIN Tasks ON Employees.id = Tasks.employee_id JOIN TaskExpenseTypes ON Tasks.id = TaskExpenseTypes.task_id GROUP BY Departments.name
Explore data in a rich spreadsheet UI. Use Magical SQL to combine and transform data. SQL queries become new tables that can be shared with business users and used in any BI tool such as Microsoft Power BI, Tableau or Metabase.
Power BI
Metabase
Tableau
Let AI do the work for you
Peliqan’s AI assistant helps you to write SQL queries to get to insights fast. Ask your question in plain English and immediately see the result in Peliqan’s rich spreadsheet viewer.
Ready to get instant access to all your company data ?
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.