The Facebook Growth team wants to identify users with the strongest engagement during January 2025. Write a PostgreSQL query that ranks users by their total Facebook app session duration and returns the top 10%.
2025-01-01 through 2025-01-31; treat NULL durations as zero.| Column | Type | Description |
|---|---|---|
| user_idPK | INTEGER | Unique Facebook user identifier |
| user_name | VARCHAR(100) | User display name |
| signup_date | DATE | Date the user registered |
| Column | Type | Description |
|---|---|---|
| session_idPK | INTEGER | Unique session identifier |
| user_id | INTEGER | User who generated the session |
| session_start | TIMESTAMP | Session start timestamp |
| duration_seconds | INTEGER | Session duration in seconds |