Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Predict Delivery Dates | Section
Functions in SQL
Sectionย 1. Chapterย 12
single

single

bookChallenge: Predict Delivery Dates

Swipe to show menu

Task

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.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Sectionย 1. Chapterย 12
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

some-alt