Bol

Top promotions

SQL query for Bol

Identify the top performing promotions based on the total revenue generated.

SELECT p.promotion_name, SUM(i.amount) as total_revenue FROM promotions p JOIN invoices i ON p.promotion_id = i.promotion_id GROUP BY p.promotion_name ORDER BY total_revenue DESC LIMIT 5

Bol data model

Bol
Table Promotions

Bol
Table Invoices

Bol
Table Inventory

Bol
Table Orders

Bol
Table Returns

Bol
Table Shipments

Bol
Table Replenishments

Use SQL on all your SaaS data

Magical SQL for Bol 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

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 Ask AI willl write your SQL queries from plain English