For how to write data and query data, please refer to <https://docs.tdengine.com/cloud/data-in/insert-data/> and <https://docs.tdengine.com/cloud/data-out/query-data/>.
For how to write data and query data, please refer to [Data In](https://docs.tdengine.com/cloud/data-in/) and [Data Out](https://docs.tdengine.com/cloud/data-out/).
For more details about how to write or query data via REST API, please check [REST API](https://docs.tdengine.com/cloud/programming/connector/rest-api/).
For more details about how to write or query data via REST API, please check [REST API](https://docs.tdengine.com/cloud/programming/connector/rest-api/).
@@ -36,7 +36,7 @@ Query OK, 2 row(s) in set (0.001100s)
...
@@ -36,7 +36,7 @@ Query OK, 2 row(s) in set (0.001100s)
To meet the requirements of varied use cases, some special functions have been added in TDengine. Some examples are `twa` (Time Weighted Average), `spread` (The difference between the maximum and the minimum), and `last_row` (the last row). Furthermore, continuous query is also supported in TDengine.
To meet the requirements of varied use cases, some special functions have been added in TDengine. Some examples are `twa` (Time Weighted Average), `spread` (The difference between the maximum and the minimum), and `last_row` (the last row). Furthermore, continuous query is also supported in TDengine.
For detailed query syntax please refer to [Select](https://docs.tdengine.com/cloud/taos-sql/select).
For detailed query syntax please refer to [Select](https://docs.tdengine.com/cloud/taos-sql/select/).
## Aggregation among Tables
## Aggregation among Tables
...
@@ -82,7 +82,7 @@ SELECT count(*), max(current) FROM test.meters where groupId = 2 and ts > now -
...
@@ -82,7 +82,7 @@ SELECT count(*), max(current) FROM test.meters where groupId = 2 and ts > now -
Query OK, 1 row(s) in set (0.002136s)
Query OK, 1 row(s) in set (0.002136s)
```
```
Join queries are only allowed between subtables of the same STable. In [Select](https://docs.tdengine.com/cloud/taos-sql/select), all query operations are marked as to whether they support STables or not.
Join queries are only allowed between subtables of the same STable. In [Select](https://docs.tdengine.com/cloud/taos-sql/select/), all query operations are marked as to whether they support STables or not.
## Down Sampling and Interpolation
## Down Sampling and Interpolation
...
@@ -139,7 +139,7 @@ In many use cases, it's hard to align the timestamp of the data collected by eac
...
@@ -139,7 +139,7 @@ In many use cases, it's hard to align the timestamp of the data collected by eac
Interpolation can be performed in TDengine if there is no data in a time range.
Interpolation can be performed in TDengine if there is no data in a time range.
For more details please refer to [Aggregate by Window](https://docs.tdengine.com/cloud/taos-sql/interval).
For more details please refer to [Aggregate by Window](https://docs.tdengine.com/cloud/taos-sql/distinguished/).
@@ -124,4 +124,4 @@ Successfully connect to cloud.tdengine.com:8085 in restful mode
...
@@ -124,4 +124,4 @@ Successfully connect to cloud.tdengine.com:8085 in restful mode
taos>
taos>
```
```
After entering the TDengine CLI, you can execute various SQL commands, including inserts, queries, or administrative commands. Please see the [official document](https://docs.tdengine.com/reference/taos-shell#execute-sql-script-file) for more details.
After entering the TDengine CLI, you can execute various SQL commands, including inserts, queries, or administrative commands. Please see the [official document](https://docs.tdengine.com/reference/taos-shell/#execute-sql-script-file) for more details.