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.
Author |
Topic |
pascal_jimi
Posting Yak Master
167 Posts |
Posted - 2013-10-10 : 07:18:01
|
hi i have a tablea1-----id t1How can I calculate the difference between getdate() and t1 how many dayshttp://sql-az.tr.gg/ |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2013-10-10 : 07:24:00
|
select datediff(day,t1,getdate()) from tableMadhivananFailing to plan is Planning to fail |
|
|
pascal_jimi
Posting Yak Master
167 Posts |
Posted - 2013-10-10 : 07:32:54
|
thank you ver muchhttp://sql-az.tr.gg/ |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2013-10-10 : 08:23:20
|
is t1 a date? or an integer value giving offset?------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/https://www.facebook.com/VmBlogs |
|
|
|
|
|