sql - difference in days between two dates -


i new @ this. need in seperate column in query have difference in days between t.1start , t1.finish.

thanks ,louie

select row_number() over(order town) 'row',  t1.surname, t1.forename, t1.town, t1.description, t1.sex, t1.dob, t1.start, t1.finish, dbo.viewservicecontractfull t1  t1.finish>='2013/01/01' ,  t1.finish<='2013/01/31' 

how towns come in query?

select row_number() over(order town) 'row',  t1.surname, t1.forename, t1.town, t1.description, t1.sex, t1.dob, t1.start, t1.finish, cast(datediff(day,t1.start,t1.finish) varchar) difference dbo.viewservicecontractfull t1  t1.finish>='2013/01/01' ,  t1.finish<='2013/01/31' 

additionally have @ this


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -