Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Leer Challenge: Predict Delivery Dates | Date and Time Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Predict Delivery Dates

Taak

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.

Oplossing

Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 6
single

single

Vraag AI

expand

Vraag AI

ChatGPT

Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.

Suggested prompts:

Can you explain that in simpler terms?

What are the main benefits of this approach?

Are there any common mistakes to avoid with this?

close

bookChallenge: Predict Delivery Dates

Veeg om het menu te tonen

Taak

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.

Oplossing

Switch to desktopSchakel over naar desktop voor praktijkervaringGa verder vanaf waar je bent met een van de onderstaande opties
Was alles duidelijk?

Hoe kunnen we het verbeteren?

Bedankt voor je feedback!

Sectie 2. Hoofdstuk 6
single

single

some-alt