Skip to main content

Peliqan

Unleashed ERP

Total revenue by currency

SQL query for Unleashed ERP

Calculate the total revenue for each currency used in sales orders.

SELECT Currencies.currencyName, SUM(SalesOrders.total) AS total_revenue FROM SalesOrders JOIN Currencies ON SalesOrders.currencyID = Currencies.currencyID GROUP BY Currencies.currencyName

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.