Skip to content
Advertisement

Find the timestamp of a unique ticket number

I have a table that looks like this:

There are 400,000 rows.
The ActivityNumber is a unique ticket number with the activity count attached. There are 4 teams. Each activitynumber is in the table.

I need to calculate the average time taken between updates for each team, for each month (to see how each team is improving over time).

I produced a query which counts the number of activities per team per month – so I’m part way there.

I’m unable to find the timestamp for the previousActivityNumber so I can subtract it from the current Activity number. If I could get this, I could run an average on it.

Advertisement

Answer

Conceptually:

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement