Glassdoor wants to identify the strongest-performing active job listings on its job search surface. Engagement is measured across views, clicks, saves, and applications during January 2025.
Write a PostgreSQL query to return the top 5 active Glassdoor job listings by weighted engagement score.
2025-01-01 through 2025-01-31, inclusive.| Column | Type | Description |
|---|---|---|
| listing_idPK | INT | Unique job listing identifier |
| title | VARCHAR(150) | Displayed job title |
| company_name | VARCHAR(150) | Employer associated with the listing |
| location | VARCHAR(100) | Job location, which may be undisclosed |
| is_active | BOOLEAN | Whether the listing is active |
| Column | Type | Description |
|---|---|---|
| event_idPK | INT | Unique engagement event identifier |
| listing_id | INT | Job listing associated with the event |
| user_id | INT | User who generated the event |
| event_type | VARCHAR(20) | Type of engagement action |
| event_at | TIMESTAMP | Timestamp when the action occurred |