Database: tracking_share_transactions
Question: Show the average share count of transactions each each investor, ordered by average share count.
SQL:
SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)