SQL Server Group by Query [closed]

ipakzgxi  于 2023-03-07  发布在  SQL Server
关注(0)|答案(1)|浏览(207)

Closed. This question needs debugging details . It is not currently accepting answers.

Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem . This will help others answer the question.

Closed 18 hours ago.
Improve this question

I have a query which is running on a 50GB table and doing a lot of aggregations with group by and taking 30 minutes to run, what are my options to optimize it?, please suggest.

I tried putting indexes and updating stats but nothing helps, need to find out what could be an alternative to a group by.

8ehkhllq

8ehkhllq1#

use SET SHOWPLAN_XML ON or the equivalent graphic pane 'display estimated execution plan' to understand the flow.

相关问题