# Select log_id and cast log_timestamp to DATE

Canonical URL: <https://datadriven.io/problems/select-logid-and-cast-logtimestamp-to-date-name-the-resul-5715960a>

Domain: SQL · Difficulty: medium

## Problem

Select log_id and cast log_timestamp to DATE. Name the result log_date. Filter to only include logs where log_timestamp is on or after '2024-01-01'.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/select-logid-and-cast-logtimestamp-to-date-name-the-resul-5715960a)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.