Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Calculate Order Age | Date and Time Functions
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Functions in SQL

bookChallenge: Calculate Order Age

Завдання

Swipe to start coding

Write a query to calculate the number of days since each order was placed, using the orders table.

  • Select the order_id and order_date columns.
  • Calculate the number of days between the current date and the order_date for each order.
  • Include this value in the result set as days_since_order.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Calculate Order Age

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Write a query to calculate the number of days since each order was placed, using the orders table.

  • Select the order_id and order_date columns.
  • Calculate the number of days between the current date and the order_date for each order.
  • Include this value in the result set as days_since_order.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 2
single

single

some-alt