| Archives of the TeradataForumMessage Posted: Wed, 14 Aug 2013 @ 20:49:10 GMT
 
 
  
| Subj: |  | Re: How to check whether PI has STATS collected |  |  |  | From: |  | Dieter Noeth |  
 saurabh.c.srivastava wrote: |  | I want to use a query in stored procedure which should either say Yes(Y) or No(N). |  | 
 
 
 |  | All I want to check whether we can check whether or not STATS are collected on PI(Not other index or columns) of a table by passing
TableName and DatabaseName? |  | 
 
 
 If it's pre-TD14 you can use my stats query: developer.teradata.com/... It's not yet finished for TD14, but you can easily left join dbc.IndexcesV and dbc.StatsV to get that result. 
 Dieter 
 
 |