All Products
Search
Document Center

Time Series Database:Terms

Last Updated:Mar 28, 2026

The Time Series Database (TSDB) SQL query engine — also called the TSQL query engine or TSQL engine — supports SQL-like queries and time series data queries. It lets you query multiple metrics using JOIN operations.

This topic maps time series concepts to their SQL equivalents so you can use TSQL effectively if you have a relational database background.

How time series data maps to SQL

A time series in TSDB looks like this:

timeseries

For definitions of metrics, tags, tag values, timestamps, and values in TSDB, see Terms.

The SQL relational model represents data as a two-dimensional table. The time series above maps to this relational table:

Table: Temperature

timestampvalueFloorRoomDeviceID
1492158910263333027649501
149215892025.83333027649501
149215893026.13333027649501
149215894026.33333027649501
149215895026.53333027649501
...

Data model reference

TSDB time series modelTSDB SQL relational model
MetricTable
TimestampThe timestamp column. Data type: TIMESTAMP
ValueThe value column. Supported data types: DOUBLE, VARCHAR, and BOOLEAN
Tag keyThe TagKey column. Data type: VARCHAR
Tag valueEach value in the TagKey column

Limitations

  • The multi-value model is not supported.

  • Single table queries cannot return values from multiple fields.