What was the duration of activity 'payment realized' in each case? Can you provide me a…
- User
What was the duration of activity 'payment realized' in each case?
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
To calculate the duration of the "payment realized" activity for each case, you would first need to identify the start and end timestamps for this activity. Assuming “payment realized” is a single event in a case and does not have a separate start and end point, you can directly use the timestamp of the event.