Task: Get sum of numeric field 'Price' from 'Goods' table.
Solution 1: Using Specialized Tool
- Open the database.
- Open the dataset, i.e. select a table 'Goods' from the table list or execute the following SQL query:
SELECT Price FROM goods
- If you chose the table, switch to Data page.
- Double-click the 'Price' column. The program will start to do the aggregation. After it finished, you will see a set of calculated parameters from the column, including the sum.
Solution 2: Using SQL Aggregation
This is the most effective solution, especially for large tables.
- Open the database.
- Create new SQL window and type the following SQL text in the SQL editor:
SELECT sum(price) FROM goods
- Click Execute Query button or press F9, and you will see a result with sum calculated.
See also