SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count)
Tunjukkan jumlah saham rata -rata transaksi masing -masing setiap investor, dipesan dengan jumlah saham rata -rata.
CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER)