Weclapp

Total purchase amount by supplier

SQL query for WeClapp

Calculate the total purchase amount for each supplier.

SELECT supplier.name, SUM(purchaseInvoice.totalAmount) AS total_purchase_amount FROM supplier INNER JOIN purchaseOrder ON supplier.id = purchaseOrder.supplierId INNER JOIN purchaseInvoice ON purchaseOrder.id = purchaseInvoice.orderId GROUP BY supplier.name

WeClapp data model

Weclapp
Table Accounting Transaction

Weclapp
Table Article

Weclapp
Table Article Custom Attributes

Weclapp
Table Attendance

Weclapp
Table Batch Number

Weclapp
Table Calendar Event

Weclapp
Table Campaign

Weclapp
Table Campaign Participant

Weclapp
Table Contact

Weclapp
Table Contract

Weclapp
Table Currency

Weclapp
Table Crm Event

Weclapp
Table Custom Attribute Definition

Weclapp
Table Incoming Goods

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

Weclapp
Table User

Weclapp
Table Person Role

Weclapp
Table Sales Open Item

Weclapp
Table Purchase Open Item

SQL - Combine 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

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.

Security is our priority

SOC2 Type 1 certified

SOC 2 Type 1 certification (Type 2 in progress) validates our security controls, ensuring your data is protected by independently audited security measures.

ISO 27001 certification (in progress) ensures enterprise-grade information security, protecting your business with globally recognized standards.

GDPR

GDPR compliance guarantees EU data protection compliance, keeping PII data secure within EU boundaries.

Peliqan Overview

Ready to get instant access to
all your company data ?