Tag historian query and sub query

Hi, Im using a Tag historian query to bring a bunch of tags, then I want to use a sub query(child) to separate all the tag in different categories, but I dont know how to reference the tags Im bringing from the tag historian query. Something like select * from historialDataSource where name = machine1. Which is the right syntax for this.

So, your getting a dataset from a historian query or query binding, and you want to SELECT within that dataset? If so, you are in luck:

Specifically, the view() expression function and its ability to use "Pseudo-SQL" for your task.

I end up using just historian data source


with a {device_number} parameter to select between different devices