I have two tab in sql , TAB1 and TAB2. I want to use ;
last element TAB2 as reference values.
avarage of TAB2 as reference values.
max and min element of TAB2 as ref val.
What i did ----
I can take last element of TAB2,average of TAB 2 and max,min val of TAB2 via function node with JS code.
I can easily write and read sensor data from sql.
What i need ---
I need compare values which is belong to TAB2 with TAB1. I cant use switch node for comparing 2 different source. What kind of ways i must follow for achievement this goal ?
Update : For example this is from '' X '' Database , TAB2 Table Last value is 3. ID 5.22322
ID Value
1 0.23123
2 9.33333
3 5.22322
This is From '' Y '' Database, TAB1
ID Value
1 1.202123
2 3.3033
3 1.2322