Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 14 Aug 2013 @ 20:49:10 GMT


     
  <Prev Next>   <<First <Prev Next> Last>>  


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



     
  <Prev Next>   <<First <Prev Next> Last>>  
 
 
 
 
 
 
 
 
  
  Top Home Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 15 Jun 2023