What is the throughput of a travel declaration from submission (or closing) to paying ?…
- User
What is the throughput of a travel declaration from submission (or closing) to paying ?
Can you provide me a SQLite SQL query. You should use the strftime function of SQLite to get the timestamp from the date.
The data is stored in a table where each row is an event having the provided attributes (so there are no separate table containing the variant). The table is called ”events_log”.
Please consider the following information: the case identifier is called "idcase", the activity is stored inside the attribute "activity", the timestamp is stored inside the attribute "timestamp”, the resource is stored inside the attribute "resource". There is not a variant column but that can be obtained as concatenation of the activities of a case. There is not a duration column but that can be obtained as difference between the timestamp of the first and the last event.
- Assistant
Assuming that you want to calculate the time duration between the submission (or closing) of a travel declaration and its payment for each case, we can approach this problem by identifying the timestamps of two key events: the submission (or closing) event and the payment event. We need to first find out these events for each case and then calculate the time difference.