Given a table of client login events, write a query to identify the top ten longest continuous active sessions. A session is continuous only when a login event is immediately followed by a logout event for the same client. Ignore events with a NULL timestamp.
client_id, session_start, session_end, and duration_minutes.client_id ascending and session start ascending for ties.| Column | Type | Description |
|---|---|---|
| event_idPK | INTEGER | Unique identifier for the login event |
| client_id | VARCHAR(20) | Identifier of the client generating the event |
| event_type | VARCHAR(30) | Event action, such as login, logout, or another activity |
| event_timestamp | TIMESTAMP | Timestamp when the event occurred |