Oracle classic sql multi-table query, sql statistics