Home Page for the TeradataForum
 
https:

Archives of the TeradataForum

Message Posted: Sun, 19 Aug 2007 @ 08:48:52 GMT


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


Subj:   Re: How to find Number of days in a year from SQL
 
From:   Michael Larkins

Venkat:

What about something like this:

     sel date '2004-12-31'(format 'ddd')(char(3))
       , date '2003-12-31'(format 'ddd')(char(3));

It provides you with the number days in these two years.


Hope this helps,

Michael Larkins
Certified Teradata Master
Certified Teradata SQL Instructor



     
  <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: 28 Jun 2020