NOT ABLE TO PASS 9.2 ARPU EXERCISE? keep getting message select ARPU?

<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/sql-analyzing-business-metrics/lessons/common-metrics/exercises/arpu-iii?action=resume

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
Error: near line 1: near “select”: syntax error
select ARPU

<In this course, it often helps to include a screenshot of your whole web browser – that lets everyone see what you see. If you wish to include a screenshot, add it below this line.>

<If you wish to copy/paste in your code, you can use this next section. This will allow others to copy/paste your code for testing – something that they won’t be able to do with just a screenshot.>

```

with daily_revenue as (
select
date(created_at) as dt,
round(sum(price), 2) as rev
from purchases
where refunded_at is null
group by 1
)
daily_players as (
select
date(created_at) as dt,
count(distinct user_id) as players
from gameplays
group by 1
),
select
daily_revenue.dt,
daily_revenue.rev / daily_players.players
from daily_revenue
join daily_players using (dt);

<do not remove the three backticks above>
1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.