Execute Scalar - Execute Scalar SQL Query
This component executes a query returning a single value. Contineo supports Execute Scaler DB Operation to retrieve the single value from SQL Query. In this database Operation, you must write the SQL Instruction manually. This component executes the query and returns the first column of the first row in the result set returned by the query. Additional columns or rows are ignored.
Example: To get average temperature value for the given device from the sensor data table.
Steps:
Click + under DB Operations to create the new database operation.
Enter the Name of the operation and select Type as ExecuteScalar.
Click OK. The new component is created and opened in the designer.
Click Edit in the top menu to open the Properties Panel.
Navigate to Properties > Data Source and select the required data source. You can create a new data source such as SQL Data Source under Settings.
Click on Properties > Instruction to open the editor to write the Select SQL Instruction below the editor.
Write down the SQL Instruction in the editor and click OK.
Click SAVE to save the configuration.



