Skip to main content

Peliqan

Cin7 Omni

Total sales by product category

SQL query for Cin7 Omni

Calculate the total sales for each product category.

SELECT pc.name AS product_category, SUM(so.total) AS total_sales FROM product_categories pc JOIN products p ON pc.id = p.product_category_id JOIN sales_orders so ON p.id = so.product_id GROUP BY pc.name

Cin7 Omni data model

Cin7 Omni
Adjustments

Cin7 Omni
Branches

Cin7 Omni
Branch Transfers

Cin7 Omni
Bom Masters

Cin7 Omni
Contacts

Cin7 Omni
Credit Notes

Cin7 Omni
Payments

Cin7 Omni
Products

Cin7 Omni
Product Categories

Cin7 Omni
Production Jobs

Cin7 Omni
Purchase Orders

Cin7 Omni
Quotes

Cin7 Omni
Sales Orders

Cin7 Omni
Serial Numbers

Cin7 Omni
Size Ranges

Cin7 Omni
Stocks

Cin7 Omni
Users

Cin7 Omni
Vouchers

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.