Step 1: Create an SQL analysis job
Create an SQL analysis job and learn about the query object area, SQL statement editing area, and operation bar in the SQL analysis console.
Prerequisites
You have an Enterprise Edition instance of IoT Platform. For more information, see Purchase an Enterprise instance.
Background
Use the SQL analysis console to configure SQL analysis jobs. For more information, see SQL analysis overview.
Create an SQL analysis job
-
In the IoT Platform console, go to the Overview page and click the ID or alias of the target Enterprise Edition instance.
-
In the left navigation bar, select .
-
On the Analytics Insight page, click New SQL Analysis.
-
In the dialog box, enter the Data Development Name and Description for the SQL analysis job, and click Description OK.
ImportantData Development Name supports Chinese characters, letters, numbers, and underscores (32 characters maximum).
Open the SQL DataService Studio
-
In the IoT Platform console, go to the Overview page and click the ID or alias of the target Enterprise Edition instance.
-
In the left navigation bar, select .
-
On the Analytics Insight page, find the target SQL analysis job, and in the Operation column, click Development Console.
The SQL DataService Studio layout:
The console has the following areas.
Query object area (left pane)
Double-click a data table under any tab to use it as a query object.
|
Table type |
Selectable data table |
Description |
|
Product storage table |
Product attribute time-series table |
Stores TSL property and event data reported by devices to the IoT Platform. |
|
Product attribute snapshot table |
||
|
Product event table |
||
|
IoT Twin Engine time-series table |
Stores TSL property data of twin nodes in the IoT Twin Engine twin space. |
|
|
IoT Twin Engine snapshot table |
||
|
Custom storage table |
Transactional table |
Stores custom-initialized data, including data parsed or generated by SQL analysis jobs, and data output to custom storage tables after task scheduling. |
|
Partitioned table |
||
|
Time-series table |
||
|
Platform system table |
Stores product, device, device group, tag, and location data. |
|
SQL statement editing area (right pane)
|
Feature |
Description |
|
|
Executes the SQL statement.
|
|
|
Stops the running SQL statement. |
|
|
Validates the SQL statement against basic specifications. |
|
|
Formats the SQL statement for readability. Example:
|
|
Run Log |
After executing the SQL statement:
|
|
Results |
Shows query results by default on success. Note
Displays up to 200 matching records. |
Operation area (top bar)
|
Feature |
Description |
|
|
Click Publish And Execute to configure the execution policy and publish the SQL analysis job. Configure these execution policies:
|
|
|
Click the Revoke icon to revoke a published SQL analysis job. |
|
|
Click the Save icon to save the current SQL analysis job configuration. |
|
|
Click the Shortcut Key icon to view keyboard shortcuts. Windows shortcuts listed below. On Mac, use Command instead of Ctrl.
|
|
|
Click the Help icon to access IoT DataService Studio documentation. |
|
|
|









