The relevant data that has been extracted into the DataEngine BaseTable cannot be used in its raw form. Hence, the data needs to be transformed to generate value-added and insightful data analysis reports. The extracted data in the DataEngine base table can be transformed using different query operations such as addition, subtraction, joining, aggregation, filtering etc. The transformed data is ideal for analysis purposes. For example, if you want to calculate the sum-of-sales revenue of products, you can perform addition operations to transform the data and obtain the sum of sales revenue.
The different query operations are categorized based on their nature:
These operations can be applied to the base tables by defining and executing a DataEngine query.
A DataEngine Query is defined using the query method of the Workspace class, which is belongs to the C1.DataEngine.Core assembly. This method accepts the following parameters:
The following code snippet defines a query to calculate the average salary of each department assuming that a base table named Employees exists in the workspace:
And this is how the query is executed to create the result table:
Once the query has been executed, the output is saved as a table in the workspace having the same name as that of the query.