Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Predict Delivery Dates | Date and Time Functions
Functions in SQL

bookChallenge: Predict Delivery Dates

Oppgave

Swipe to start coding

Predicting delivery dates is a common use case for date functions in SQL. In this challenge, you will use the orders table to estimate when each order will be delivered by adding 5 days to its order_date.

  • Select the order_id, customer_id, and order_date columns from the orders table.
  • Calculate a new column named predicted_delivery_date by adding 5 days to the order_date for each row.
  • Use the appropriate SQL date arithmetic to add days to a date value.

Løsning

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 6
single

single

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

close

bookChallenge: Predict Delivery Dates

Sveip for å vise menyen

Oppgave

Swipe to start coding

Predicting delivery dates is a common use case for date functions in SQL. In this challenge, you will use the orders table to estimate when each order will be delivered by adding 5 days to its order_date.

  • Select the order_id, customer_id, and order_date columns from the orders table.
  • Calculate a new column named predicted_delivery_date by adding 5 days to the order_date for each row.
  • Use the appropriate SQL date arithmetic to add days to a date value.

Løsning

Switch to desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 6
single

single

some-alt