Skip to main content

Find Average Purchase Value

Easy

You are given the following tables:

attribution table:

session_idmarketing_channelpurchase_value
stringstringfloat

user_sessions table:

session_idad_click_timestampuser_id
stringdatetimestring

Find the average value of purchases made through each marketing channel and arrange them in descending order, starting with the channel that has the highest average purchase value. Your output should have the following columns: marketing_channel, avg_purchase_value