WeClapp

Total revenue by payment method

SQL query for WeClapp

Calculate the total revenue received for each payment method.

SELECT paymentMethod.name, SUM(payment.amount) AS total_revenue FROM payment INNER JOIN paymentMethod ON payment.methodId = paymentMethod.id GROUP BY paymentMethod.name

WeClapp data model

WeClapp
Table Accounting Transaction

WeClapp
Table Article

WeClapp
Table Attendance

WeClapp
Table Batch Number

WeClapp
Table Calendar Event

WeClapp
Table Campaign

WeClapp
Table Campaign Participant

WeClapp
Table Contract

WeClapp
Table Currency

WeClapp
Table Crm Event

WeClapp
Table Lead

WeClapp
Table Ledger Account

WeClapp
Table Opportunity

WeClapp
Table Party

WeClapp
Table Payment Method

WeClapp
Table Pick

WeClapp
Table Production Order

WeClapp
Table Production Work Schedule

WeClapp
Table Purchase Invoice

WeClapp
Table Purchase Order

WeClapp
Table Quotation

WeClapp
Table Sales Invoice

WeClapp
Table Sales Order

WeClapp
Table Shipment

WeClapp
Table Shipment Method

WeClapp
Table Supplier

WeClapp
Table Tag

WeClapp
Table Ticket

Use SQL on all your SaaS data

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