What is the average throughput time when activity ’Send Fine’ occurs more than 50 days…
- User
What is the average throughput time when activity ’Send Fine’ occurs more than 50 days after the start of the case? Can you provide me a DuckDB SQL query. You should use the EPOCH function of DuckDB to get the timestamp from the date. The data is stored in a Pandas dataframe where each row is an event having the provided attributes (so there are no separate table containing the variant). The dataframe is called ”dataframe”. Please consider the following information: the case identifier is called ”case:concept:name”, the activity is stored inside the attribute ”concept:name”, the timestamp is stored inside the attribute ”time:timestamp ”, the resource is stored inside the attribute ”org: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
- User
What is the average throughput time when activity ’End trip’ occurs more than 50 days after the start of the case?
Can you provide me a SQLite SQL query. You should use the unixepoch 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 ”case_id”, 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