I have two different sqlite3 databases in one flow. I want to select one value, each from those different databases, and compare. Unfortunately, when I change the path in one database, the other automatically gets changed as per the modified one.
Thank you very much. Now that I could pass select queries, how I can compare both the outputs and create an output that I can write to a S7 data block? I am using JOIN but cannot find a solution for that.
The output of both the databases are attached in the snapshot. I am trying to join them manually to create an Array. Doesn't work. I think I am doing some mistake.
Rather than using a Join node (which will work if you configure it correctly), connect them in series. Feed an inject node into the first db, then feed the result into a Change node which Moves msg.payload into a message property, msg.db1Results for example. Then feed that into the second db node . The output will then contain the second results in msg.payload and the original results should still be in msg.db1Results.
you would see your error (clue - missing parenthesis)
Additionally, where do you think object.data1 comes from? Read this to learn how to use the debug panel to find the right path to any data item: Working with messages : Node-RED
Recommended Learning...
I also recommend watching this playlist: Node-RED Essentials. The videos are done by the developers of node-red. They're nice & short and to the point. You will understand a whole lot more in about 1 hour. A small investment for a lot of gain.