我想为特定的ticket_id获取停滞(NewValue)和停滞(OldValue)之间的“创建”时间差
注意:这是我的第一篇文章。由于某些限制,我无法附上图片。
+-----------+----------+----------+---------------------+
| Ticket_id | OldValue | NewValue | Created |
+-----------+----------+----------+---------------------+
| 20100 | new | wip | 2012-10-01 07:38:18 |
| 20100 | wip | stalled | 2012-10-01 10:12:14 |
| 20100 | stalled | wip | 2012-10-01 22:09:39 |
| 20100 | wip | open | 2012-10-02 01:03:26 |
| 20100 | open | stalled | 2012-10-02 01:03:26 |
| 20100 | stalled | wip | 2012-10-03 06:55:42 |
| 20100 | wip | open | 2012-10-03 19:24:53 |
| 20100 | open | stalled | 2012-10-03 19:24:53 |
| 20100 | stalled | open | 2012-10-04 19:28:48 |
| 20100 | open | resolved | 2012-10-04 21:01:17 |
+-----------+----------+----------+---------------------+