Challenge: Explore Date and Time Functions
Pyyhkäise näyttääksesi valikon
Use the date_time_examples table to answer the following business questions about date and time manipulation:
- Extract the year from the
sample_datecolumn. - Add 10 days to the
sample_datecolumn. - Format the
sample_timestampcolumn to show only the year, month, day, hour, and minute (YYYY-MM-DD HH:MM).
Your query should return these columns:
For step 1:
id;sample_date;year_extracted.
For step 2:
id;sample_date;date_plus_10_days.
For step 3:
id;sample_timestamp;formatted_timestamp.
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 3. Luku 6
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Osio 3. Luku 6