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 |
|
cwildeman
Starting Member
40 Posts |
Posted - 2010-10-28 : 13:05:04
|
| Hi,I have a calculated field which subtracts two dates (See SQL statement below). Right now it returns a date such as 1901-02-15 00:00:00.000. I want it to simply return an interger such as 44. Can someone help me format this correctly?dbo.vReadmit30Days2.AdmitDate2 - dbo.vReadmit30Days2.DischargeDate AS ReadmitDaysThanks,ChuckChuck W |
|
|
X002548
Not Just a Number
15586 Posts |
|
|
cwildeman
Starting Member
40 Posts |
Posted - 2010-10-28 : 14:02:36
|
| Brett, Thanks for your help. I am new to this forum and to SQL Server (this is my second post). I did research the question before hand but could not come up with an answer. Was there something lacking in my question? I could have posted the entire SQL Statement but it was pretty massive. ChuckChuck W |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
|
|
|
|