Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 14 Apr 2010 @ 11:45:31 GMT


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


Subj:   Problem with casting Date value
 
From:   Ansari, Rehman

Hi ,

I want to display date value in format yyyy-mm-dd

I tried using Cast function but it didn't worked , any help will be highly appreciable.

My query,

     SELECT top 10 CAST((createdate (FORMAT 'yyyy-mm-dd')) AS DATE)
        FROM dbc.rcevent

I tried with timestamp but it gives seconds too with date .


Regards,

Rehman Ansari



     
  <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