Write a SQL query to find users who logged in more than 2 times.
Asked in the Round 2 stage. Use the users and login_events tables.
user_id, username, and login_count.login_count descending, then user_id ascending.| Column | Type | Description |
|---|---|---|
| user_idPK | INT | Unique user identifier |
| username | VARCHAR(100) | User login name |
| VARCHAR(255) | User email address |
| Column | Type | Description |
|---|---|---|
| login_idPK | INT | Unique login event identifier |
| user_id | INT | User associated with the login event |
| login_at | TIMESTAMP | Timestamp of the login |
| ip_address | VARCHAR(45) | Source IP address |