Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Calculate Order Age | Date and Time Functions
Functions in SQL

bookChallenge: Calculate Order Age

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Calculate Order Age

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 2
single

single

some-alt