Challenge: 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_idandorder_datecolumns. - Calculate the number of days between the current date and the
order_datefor each order. - Include this value in the result set as
days_since_order.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 2
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Großartig!
Completion Rate verbessert auf 2.86
Challenge: 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_idandorder_datecolumns. - Calculate the number of days between the current date and the
order_datefor each order. - Include this value in the result set as
days_since_order.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 2. Kapitel 2
single