PL/SQL script to find correlation between stocks