Skip to main content

Peliqan

Unleashed ERP

Top Selling Products

SQL query for Unleashed ERP

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;

Unleashed ERP data model

Unleashed ERP
Suppliers

Unleashed ERP
Assemblies

Unleashed ERP
Bill Of Materials

Unleashed ERP
Products

Unleashed ERP
Product Prices

Unleashed ERP
Stock On Hand

Unleashed ERP
Customers

Unleashed ERP
Accounts

Unleashed ERP
Sales Orders

Unleashed ERP
Purchase Orders

Unleashed ERP
Warehouses

Unleashed ERP
Product Groups

Unleashed ERP
Currencies

Unleashed ERP
Taxes

Unleashed ERP
Sales Shipments

Unleashed ERP
Stockonhand Warehouses

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.