If the tables are linked together so that you can join them, it's pretty simple. Just join them and correlate:
SELECT corr(t1.col1, t2.col2)
FROM table1 t1
JOIN table2 t2
ON t1.join_field = t2.join_field
WHERE
<filters for t1>
AND
<filters for t2>
If this is not the case, then how should you find out which combination of fields from each table you want to run corron?
source
share