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 |
|
AskSQLTeam
Ask SQLTeam Question
0 Posts |
Posted - 2003-02-27 : 12:37:19
|
| JimL writes "O masters of SQL I humbly ask your advice (enough boot licking? LOL) Here is my dilemma I have 2 Date fields that are set via Getdate() lets call them [Starttime] and [endtime] I need create a procedure that will update [ELTime] field with elapsed time in minutes between them in a Int format . Note: this May be days or weeks apart." |
|
|
graz
Chief SQLTeam Crack Dealer
4149 Posts |
Posted - 2003-02-27 : 12:37:20
|
I'd check out the DATEDIFF function. You can write something like:
select DATEDIFF ( mi, Starttime, endtime) from tablename |
 |
|
|
|
|
|