I am looking for the list of “parameters” recorded as “friendly names”.
I am not looking for any value just the list of sensors type based on their “friendly name” tag starting by "temp "
in SQL I would do a
SELECT distinct friendly_name FROM database WHERE friendly_name like 'temp %'
Rght now I am struggling to write some SQL queries and this is when I appreciate the structure of FLUX scripting. on SQL the Query needs to be nested bottom to top with multiple SELECT statements and then at the end do Joins, it kind of difficult to track in my mind.
Flux by the other hand is top to bottom I can grasp the result as I am narrowing down, using group and declaring variables. Usually, I have all the subsets already in the schema, so no need to use multiple select statements with aggregators like SELECT (SELECT MAX( CASE WHEN a=‘b’ FROM c AS d))… for each one of the parameters I am looking for.
and at the very end I can use last() or min() to get the latest or first values.
I mean time series and relational databases are not the same and were never intended to be, but it requires a different creative approach …