Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Explore Date and Time Functions | Introduction to BigQuery-Specific Features
BigQuery Fundamentals

bookChallenge: Explore Date and Time Functions

Sveip for å vise menyen

Use the date_time_examples table to answer the following business questions about date and time manipulation:

  1. Extract the year from the sample_date column.
  2. Add 10 days to the sample_date column.
  3. Format the sample_timestamp column 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.
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 3. Kapittel 6

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

Seksjon 3. Kapittel 6
some-alt