Write a basic MongoDB query to find all users who registered in the last 24 hours.
For this PostgreSQL version, use the users table and its registered_at timestamp column. Return only registrations from the previous 24 hours through the current time.
user_id, username, email, and registered_atregistered_at 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 | |
| registered_at | TIMESTAMPTZ | Timestamp when the user registered |