PL/SQL script to find actual stock trading activity from incoming buy and sell orders