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

bookChallenge: Calculate Order Age

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

close

bookChallenge: Calculate Order Age

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 2. Kapitel 2
single

single

some-alt