Cin7 Core

Top Selling Products

SQL query for Cin7 Core

Retrieve the top 10 best-selling products based on the total quantity sold.

SELECT p.product_name, SUM(ol.quantity) AS total_quantity_sold FROM products p INNER JOIN orderlines ol ON p.product_id = ol.product_id GROUP BY p.product_name ORDER BY total_quantity_sold DESC LIMIT 10;

Cin7 Core data model

Cin7 Core
Table Attribute Set

Cin7 Core
Table Bank Accounts

Cin7 Core
Table Brands

Cin7 Core
Table Carriers

Cin7 Core
Table Chart Of Accounts

Cin7 Core
Table Crm Opportunity

Cin7 Core
Table Crm Leads

Cin7 Core
Table Customers

Cin7 Core
Table Customer Templates

Cin7 Core
Table Customer Credits

Cin7 Core
Table Deals

Cin7 Core
Table Discounts

Cin7 Core
Table Disassembly List

Cin7 Core
Table Finishedgoods List

Cin7 Core
Table Fixed Asset Type

Cin7 Core
Table Journal

Cin7 Core
Table Locations

Cin7 Core
Table Money Task List

Cin7 Core
Table Payment Terms

Cin7 Core
Table Price Tiers

Cin7 Core
Table Products

Cin7 Core
Table Product Attachments

Cin7 Core
Table Product Availability

Cin7 Core
Table Product Categories

Cin7 Core
Table Production Order List

Cin7 Core
Table Production Resource List

Cin7 Core
Table Production Workcenters

Cin7 Core
Table Purchase List

Cin7 Core
Table Sale List

Cin7 Core
Table Sale Orders

Cin7 Core
Table Sale Invoices

Cin7 Core
Table Ship Zones

Cin7 Core
Table Stock Adjustment List

Cin7 Core
Table Stock Take List

Cin7 Core
Table Stock Transfer List

Cin7 Core
Table Suppliers

Cin7 Core
Table Supplier Deposits

Cin7 Core
Table Tax List

Cin7 Core
Table Templates

Cin7 Core
Table Transactions

Cin7 Core
Table Units

SQL - Combine data

Magical SQL for Cin7 Core with Peliqan.io

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.

Let AI do the work for you

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.

Peliqan Overview

Ready to get instant access to
all your company data ?