Challenge: Calculate Order Age
Opgave
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øsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastisk!
Completion rate forbedret til 2.86
Challenge: Calculate Order Age
Stryg for at vise menuen
Opgave
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øsning
Var alt klart?
Tak for dine kommentarer!
Sektion 2. Kapitel 2
single