Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Thu, 28 Mar 2013 @ 22:25:14 GMT


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


Subj:   Re: Fields on which Partitioned is collected
 
From:   Mani, Vijay

Thanks all for the inputs.

I used the below query to extract the field name

     SELECT OREPLACE(TRIM(SUBSTRING(CONSTRAINTTEXT FROM (INDEX(CONSTRAINTTEXT,'R
     ANGE_N')+8),(INDEX(CONSTRAINTTEXT,'BETWEEN')-1)-(INDEX(CONSTRAINTTEXT,'RAN
     GE_N(')+8))),'"','') AS COL_NAME
     FROM  DBC.INDEXCONSTRAINTSV
     WHERE DATABASENAME=''
     AND TABLENAME= '';

Thanks,

Vijay Mani



     
  <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