I have the following table:
ticket arrivaltime resolution time status
t1 '2012-09-03' null new
t2 '2012-09-04' null new
t1 (can be anything) '2012-09-14' verified
t1 (can be anything) '2012-09-16' verified
t2 (can be anything) '2012-09-06' verified
Now I want to find, for example, for t1 the difference in days:
Age(t1)=(resolution time of last entry) - (arrival time of first entry)
Similarly I'll find it for t2.
How can I find this?