select * from (select sessionid, sessionserial#, count(*), v.sqlid from…
- User
select * from (select session_id, session_serial#, count(), v.sql_id from v$active_session_history v where session_state = 'ON CPU' and sample_time >= sysdate - interval '10' minute group by session_id, session_serial#, v.sql_id order by count() desc);
- Assistant
This query selects all columns from the subquery, which retrieves information from the v$active_session_history view. It selects the session_id, session_serial#, count of records, and sql_id for sessions that are currently on the CPU and whose sample_time is within the last 10 minutes. The results are grouped by session_id, session_serial#, and sql_id, and ordered by the count of records in descending order.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.