user1874594
user1874594

Reputation: 2493

Teradata - report for top "stats hoggers"

Trying to compile a "statistics Hoggers" report . All those users who hogged away CPU running statistics
On what "table.cols" ( or col1,col2 etc) , did they run stats and when they ran it.

I wrote the below report but I can see its far from real

Upvotes: 0

Views: 107

Answers (1)

dnoeth
dnoeth

Reputation: 60482

In the 1st Select there's a missing join condition: s.queryID = a.queryID

Collect Stats is always single table, no need to split CPU.

Upvotes: 1

Related Questions