Skip to main content

Peliqan

Exact Online

Total purchase amount by division

SQL query for Exact Online

Calculate the total purchase amount for each division.

SELECT Divisions.DivisionName, SUM(PurchaseEntries.Amount) AS TotalPurchaseAmount FROM PurchaseEntries INNER JOIN Divisions ON PurchaseEntries.Division = Divisions.ID GROUP BY Divisions.DivisionName

Exact Online data model

Exact Online
Transactiontype

View 2 columns
NameString
NumberInteger
Exact Online
Paymentmethods

View 2 columns
CodeString
NameString
Exact Online
Glaccounttype

View 2 columns
NameString
NumberInteger
Exact Online
Entitytype

View 2 columns
NameString
NumberInteger
Exact Online
Sales Invoices

Exact Online
Sales Invoice Lines

Exact Online
Purchase Invoices

Exact Online
Purchase Invoice Lines

Exact Online
G L Accounts

Exact Online
G L Classifications

Exact Online
Reporting Balance

Exact Online
Purchase Entries

Exact Online
Sales Entries

Exact Online
Goods Receipts

Exact Online
Item Charge Relation

Exact Online
Document Attachments

Exact Online
Documents

Exact Online
Accounts

Exact Online
Transaction Lines

Exact Online
Financial Periods

Exact Online
G L Account Classification Mappings

Exact Online
Payables List

Exact Online
Divisions

Exact Online
Items

Exact Online
Goods Deliveries Sync

Exact Online
Goods Deliveries

Exact Online
Goods Delivery Lines

Exact Online
Goods Delivery Lines Sync

Exact Online
Sales Orders

Exact Online
Sales Order Lines

Exact Online
Addresses

Exact Online
Aging Receivables List

Exact Online
Receivables List

Exact Online
Costcenters

Exact Online
Shop Orders

Exact Online
Workcenters

Exact Online
Time Transactions

Exact Online
Timed Time Transactions

Exact Online
Material Issues

Exact Online
Shop Order Routing Step Plans

Exact Online
Shop Order Material Plans

Exact Online
Purchase Orders

Exact Online
Purchase Order Lines

Exact Online
Warehouse Transfers

Exact Online
Warehouse Transfer Lines

Exact Online
Selection Codes

Exact Online
Account Classifications

Exact Online
Contacts

Exact Online
Cashflow Payments

Exact Online
Subscriptions

Exact Online
Subscription Lines

Exact Online
Subscription Types

Exact Online
Subscription Reason Codes

Exact Online
Receivables

Exact Online
Assets

Exact Online
Journals

Exact Online
Bank Accounts

Exact Online
Default Mailbox

Exact Online
Preferred Mailbox

Exact Online
Preferred Mailbox For Operation

Exact Online
Mailboxes

Exact Online
Mail Messages Sent

Exact Online
Mail Message Attachments

Exact Online
Units

Exact Online
Opening Balance After Entry

Exact Online
Deleted

Exact Online
Account Classes

Exact Online
Account Classification Names

Exact Online
Projects

Exact Online
Project Classifications

Exact Online
Cost Transactions

Exact Online
Cost Types

Exact Online
W B S Expenses

Exact Online
Cash Entries

Exact Online
Cash Entry Lines

Exact Online
Batch Numbers

Exact Online
Item Warehouse Storage Locations

Exact Online
Goods Receipt Lines

Exact Online
G L Accounts Bulk

Exact Online
Account Owners

Exact Online
Account Involved Accounts

Exact Online
Involved User Roles

Exact Online
Involved Users

Exact Online
Bulk Sales Orders

Exact Online
Bulk Sales Order Lines

Exact Online
Bulk Financial Transaction Lines

Exact Online
Bulk Sales Invoices

Exact Online
Bulk Sales Invoice Lines

Exact Online
Purchase Return Lines

Exact Online
Item Groups

Exact Online
Quotations

Exact Online
Quotation Lines

Exact Online
Stock Batch Numbers

Exact Online
V A T Codes

Exact Online
Banks

Exact Online
User Roles

Exact Online
User Roles Per Division

Exact Online
General Journal Entries

Exact Online
General Journal Entry Lines

Exact Online
Payment Terms

Exact Online
Events

Exact Online
Quotation Headers Sync

Exact Online
Quotation Lines Sync

Exact Online
Absence Registrations Sync

Exact Online
Absence Registration Transactions Sync

Exact Online
Leave Absence Hours By Day Sync

Exact Online
Leave Build Up Registrations Sync

Exact Online
Leave Registrations Sync

Exact Online
Schedule Entries Sync

Exact Online
Schedules Sync

Exact Online
Item Storage Locations Sync

Exact Online
Item Warehouses Sync

Exact Online
Serial Batch Numbers Sync

Exact Online
Stock Positions Sync

Exact Online
Stock Serial Batch Numbers Sync

Exact Online
Storage Location Stock Positions Sync

Exact Online
Purchase Item Prices Sync

Exact Online
Sales Item Prices Sync

Exact Online
Sales Item Prices

Exact Online
Recent Hours

Exact Online
Supplier Item Sync

Exact Online
Hours By Id

Exact Online
Bill Of Material Materials Sync

Exact Online
Bill Of Material Versions Sync

Exact Online
Material Issues Sync

Exact Online
Shop Order Material Plans Sync

Exact Online
Shop Order Purchase Planning Sync

Exact Online
Shop Order Routing Step Plans Sync

Exact Online
Shop Orders Sync

Exact Online
Shop Order Sub Orders Sync

Exact Online
Bank Accounts Sync

Exact Online
Employees Sync

Exact Online
Employees

Exact Online
Employment C L As Sync

Exact Online
Employment Contracts Sync

Exact Online
Employment Organizations Sync

Exact Online
Employments Sync

Exact Online
Employment Salaries Sync

Exact Online
Employment Tax Authorities General Sync

Exact Online
Project Planning Sync

Exact Online
Projects Sync

Exact Online
Project W B S Sync

Exact Online
Time Cost Transactions Sync

Exact Online
Purchase Orders Sync

Exact Online
Sales Price List Volume Discounts Sync

Exact Online
Subscription Lines Sync

Exact Online
Subscriptions Sync

Exact Online
Sales Order Headers Sync

Exact Online
Contacts Sync

Exact Online
Item Sales Prices

Exact Online
X M L Item Sales Prices

Exact Online
X M L National Holidays

Exact Online
Active Employments

Exact Online
Assembly Orders

Exact Online
Budgets

Exact Online
Budget Scenarios

Exact Online
Communication Notes

Exact Online
Departments

Exact Online
Employment End Reasons

Exact Online
Employment Internal Rates

Exact Online
Employment Organizations

Exact Online
Employments

Exact Online
Employment Salaries

Exact Online
Exchange Rates

Exact Online
G L Transaction Types

Exact Online
Invoice Terms

Exact Online
Item Assortment

Exact Online
Item Assortment Property

Exact Online
Item Warehouse Planning Details

Exact Online
Item Warehouses

Exact Online
Job Groups

Exact Online
Job Titles

Exact Online
Lead Sources

Exact Online
Payment Conditions

Exact Online
Planned Sales Return Lines

Exact Online
Planned Sales Returns

Exact Online
Project Budget Types

Exact Online
Project Hour Budgets

Exact Online
Project Planning

Exact Online
Project Planning Recurring

Exact Online
Project Restriction Employees

Exact Online
Project Restriction Items

Exact Online
Project Restriction Rebillings

Exact Online
Sales Price List Linked Accounts

Exact Online
Sales Price List Periods

Exact Online
W B S Activities

Exact Online
W B S Deliverables

Exact Online
Sales Price Lists

Exact Online
Warehouses

Exact Online
Returns

Exact Online
Project W B S

Exact Online
Project Time Transactions

Exact Online
Hour Cost Types

Exact Online
Sales Invoice Order Charge Lines

Exact Online
Sales Order Order Charge Lines

Exact Online
Quotation Order Charge Lines

Exact Online
Order Charges

Exact Online
Bank Entries

Exact Online
Bank Entry Lines

Exact Online
X M L Bill Of Materials

Exact Online
Aging Payables List

Exact Online
Costunits

Exact Online
Opportunities

Exact Online
Task Types

Exact Online
Service Requests

Exact Online
Tasks

Exact Online
Journal Status By Financial Period

Exact Online
Workflow Request Attachments

Exact Online
Cashflow Allocation Rule

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.