Timedifference
how to find a time difference between 2 columns of type datetime in sqlserver.? And have to check difference is greater than 30 or not?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Krishna GaradRank #191 · 12.8K reputationPosted Dec 22, 2010, 1:25 AM EST
Madhu KRank #1,514 · 1.1K reputationPosted Dec 22, 2010, 1:38 AM EST
select datediff(minute,column1,column2) in minutes.