Home Page for the TeradataForum
 
 

 

UDF Library: 'stat_dt'

Component: 'readme.txt'


 
  stat_dt.c >>

Function: stat_dt

Author:   Geoffrey Rommel

Purpose:  This UDF converts the first 4 bytes of a FieldStatistics or
          IndexStatistics column to an ordinary DATE data type. This
          can be used to find the date on which stats were last collected.
          Converting the first 8 bytes to TIMESTAMP is left as an
          exercise for the reader. ;-)

Example:

          select stat_dt(FieldStatistics), DatabaseName, TableName, ColumnName
             from DBC.ColumnStats
           where FieldStatistics is not null
           order by 1;


  stat_dt.c >>





 
 

Recent Threads

Attachments

Library

Library

White Papers

UDFs

·is_integer

·nthValue

·stat_dt

·xparts

 

Teradata PDFs

IBM PDFs

 

Quick Reference

Rules of Conduct

FAQs

Join the Forum

 

Archives

Sample Index

2009  2003
2008  2002
2007  2001
2006  2000
2005  1999 
2004    


 
 
 

 
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 05 January 2009