Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Regarding subtraction of two dates

Author  Topic 

nicky_river
Yak Posting Veteran

55 Posts

Posted - 2010-10-19 : 07:32:53
Hi,

I want to display the no of days between the current date and FIRST_DATE_OF_TRADE, how do i correct the query below.

(SYSDATE - (TO_CHAR(MIN(DATE_TRADE), 'DD-MM-YYYY')))

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-19 : 07:36:00
Is that T-SQL?
This is a MS SQL Server forum.


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-19 : 08:35:39
www.dbforums.com/oracle


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page
   

- Advertisement -