Skip to main content

Peliqan

Attio

Total number of deals per company

SQL query for Attio

Get the count of deals for each company in the database.

SELECT companies.name, COUNT(deals.id) as deal_count FROM companies LEFT JOIN deals ON companies.id = deals.company_id GROUP BY companies.name

Attio data model

Attio
Companies

Attio
Deals

Attio
Lists

Attio
Objects

Attio
Notes

Attio
People

Attio
Tasks

Attio
Entries

Attio
Users

Attio
Workspaces

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.