xxxxxxxxxx
We use "||" to concatenation in Sql
example:
WHERE LOWER(FIRST_NAME || LAST_NAME) LIKE '%d%' ;
xxxxxxxxxx
SELECT
UNIX_TIMESTAMP(time) AS "time",
CONCAT(room, ' ', name) AS metric,
state
FROM metrics
WHERE
time BETWEEN FROM_UNIXTIME(1651372668) AND FROM_UNIXTIME(1651394268) AND component_type LIKE "TEMP_SENSOR"
ORDER BY time