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_ID | groupseqid | seqid | hStatus | Stat_Time | Stat_Date | Complete_Date |
287 | 1 | 2492 | Submitted | 1900-01-1 09:01:39 | 2013-04-04 | NULL |
287 | 2 | 2493 | SM Assigned | 1900-01-1 14:18:33 | 2013-04-08 | NULL |
287 | 3 | 2494 | Assign Ready | 1900-01-1 14:19:10 | 2013-04-08 | NULL |
287 | 4 | 2495 | Assigned | 1900-01-1 06:53:06 | 2013-04-11 | NULL |
287 | 5 | 2496 | In Progress | 1900-01-1 10:29:21 | 2013-04-12 | NULL |
287 | 6 | 2497 | Database Updated | 1900-01-1 10:29:21 | 2013-04-12 | NULL |
287 | 7 | 2498 | In Progress - QA Assigned | 1900-01-1 10:29:21 | 2013-04-12 | NULL |
287 | 8 | 2499 | QA Ready | 1900-01-1 06:56:54 | 2013-05-02 | NULL |
287 | 9 | 2500 | In Progress - Returned | 1900-01-1 10:58:54 | 2013-05-02 | NULL |
287 | 10 | 2501 | Re-assign Analyst | 1900-01-1 10:58:54 | 2013-05-02 | NULL |
287 | 11 | 2502 | Add New Comment | 1900-01-1 10:58:54 | 2013-05-02 | NULL |
287 | 12 | 2503 | Add New Comment | 1900-01-1 10:58:54 | 2013-05-02 | NULL |
287 | 13 | 2504 | Add New Comment | 1900-01-1 10:58:54 | 2013-05-02 | NULL |
287 | 14 | 2505 | Add New Comment | 1900-01-1 10:58:54 | 2013-05-02 | NULL |
287 | 15 | 2506 | QA Ready | 1900-01-1 14:22:19 | 2013-05-09 | NULL |
287 | 16 | 2507 | QA In Progress | 1900-01-1 08:49:08 | 2013-05-13 | NULL |
287 | 17 | 2508 | Sign Off | 1900-01-1 08:53:03 | 2013-05-13 | NULL |
287 | 18 | 2509 | Complete | 1900-01-1 03:38:18 | 2013-05-16 | 5/16/2013 |