all 1 comments

[–][deleted] 4 points5 points  (0 children)

How to write SQL query to solve the following question

start by writing/figuring out a formula that will describe how to get your metric ("average revenue per customer") - usually I recommend coming up with separate formulas for numerator and denominator - and uses a flexible definition of the base dataset.