Referencing sql query data in Tag historian in report

How to reference sql query attribute in Tag historian. For example I have station number from sql query how to reference it to tag historian station number. refer images for better understanding


any updates for this how to do it?

If you have questions on the test, please email training@inductiveautomation.com