Hi ,you can achieve the result without using a continuous query …
A simple select into statement can select the fields you want , or are you planning to aggregate your data ?
The new measurement is not really needed because it will contain a subset of your first measurement … so it will only take space without having a reason to exist ?
your continuous query must have a function in the select statement , an INTO
and a GROUP BY TIME() clause.
Do you want to calculate averages for example ?
> select * from time
name: time
time value1 value2 value3 value4
---- ------ ------ ------ ------
1551697213974676426 4 6 9 8
1551698822749869390 4 71 9 41
> select ("value2" + "value4") as value1 into timesum from time where time > now() - 1h
name: result
time written
---- -------
0 2
> select * from timesum
name: timesum
time value1
---- ------
1551697213974676426 14
1551698822749869390 112