Skip to content

Query on aws rds does not run correctly #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jmizellpolestar opened this issue Nov 12, 2024 · 0 comments
Open

Query on aws rds does not run correctly #9

jmizellpolestar opened this issue Nov 12, 2024 · 0 comments

Comments

@jmizellpolestar
Copy link

When running this sql:
select top 50 start_time,
[type] = execution_type_desc,
[queries/s] = sum(count_executions)/ min(interval_mi) /60,
[cpu %] = ROUND(100. * (sum(count_executions*cpu_time_ms) /1000.)
/ ( min(interval_mi) * 60)
/ (SELECT top 1 cpu_count FROM qpi.sys_info)/cores/,1)
from qpi.db_query_plan_exec_stats_history
group by start_time, execution_type_desc
order by start_time desc;

I get this error:
Msg 207, Level 16, State 1, Line 3
Invalid column name 'count_executions'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant