Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Best way to determine datediff in minutes

$
0
0

What is the easiest way to determine datediff  in minutes for the following data for:

1. minutes between Submitted and QA Ready hStatus
2. minutes between  QA Ready and SignOff hStatus (if request goes to QA Ready hStatus more than once, use last QA Ready hStatus Stat_Date, Stat_time)
3. minutes between Submitted and SignOff hStatus

Thanks.

DMT_IDgroupseqidseqidhStatusStat_TimeStat_DateComplete_Date
28712492Submitted1900-01-1 09:01:392013-04-04NULL
28722493SM Assigned1900-01-1 14:18:332013-04-08NULL
28732494Assign Ready1900-01-1 14:19:102013-04-08NULL
28742495Assigned1900-01-1 06:53:062013-04-11NULL
28752496In Progress1900-01-1 10:29:212013-04-12NULL
28762497Database Updated1900-01-1 10:29:212013-04-12NULL
28772498In Progress - QA Assigned1900-01-1 10:29:212013-04-12NULL
28782499QA Ready1900-01-1 06:56:542013-05-02NULL
28792500In Progress - Returned1900-01-1 10:58:542013-05-02NULL
287102501Re-assign Analyst1900-01-1 10:58:542013-05-02NULL
287112502Add New Comment1900-01-1 10:58:542013-05-02NULL
287122503Add New Comment1900-01-1 10:58:542013-05-02NULL
287132504Add New Comment1900-01-1 10:58:542013-05-02NULL
287142505Add New Comment1900-01-1 10:58:542013-05-02NULL
287152506QA Ready1900-01-1 14:22:192013-05-09NULL
287162507QA In Progress1900-01-1 08:49:082013-05-13NULL
287172508Sign Off1900-01-1 08:53:032013-05-13NULL
287182509Complete1900-01-1 03:38:182013-05-165/16/2013

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>