Question 226

Customer Lifetime Value (CLV) and Segmentation

Premium Access

Unlock this Microsoft interview question.

Sign in or upgrade to practice this question with full datasets, official solutions, and guided walkthroughs.

  • 230+ interview questions
  • Official solutions
  • SQL, Python, and R tracks

***** ***** ******, ****_*********, ****_********, *** ****_*****, ***** * ************* *** ***** (** * ****** ** *******) ** ********* *** ******** ******** ***** (***) *** **** ********. *** *** ****** ** ********** ** *** ***** ******* ********* **** * ******** **** *** ***** *********, ********** ** *** ***** ****** ********** (****** * **** **** ** 25% ****** *** ******** *** **********). ************, ******* ********* **** ***** ********** ***** ** ***** ***: '**** *****', '****** *****', *** '*** *****'. *** *** ********* *** ********** *** ************: **** ***** (*** > $1000), ****** ***** ($500 < *** ≤ $1000), *** *** ***** (*** ≤ $500).

***********, ******* ******** **** *** ********** ******** ** ***** ******** ** ***** ** ********* ******* **********. ******** *** **** ******* ******* ******** *** **** *** *******.

************:

  1. ********* ******** ******** ***** (***): ******* *** *** *** **** ******** ***** ** ***** ***** ********* *** * ***** ***** ****** ** 25%.
  2. ******* *********: ********** ********* **** '**** *****', '****** *****', *** '*** *****' ******** ***** ** ***** ***.
  3. ******* ********** ********: *** **** *** *******, ******** *** **** ******* ******* ******** (*.*., *** ******** **** *** ******* ****** ** *********).
  4. ******* **** ********: **** ***** ****** ****** ******* *** ******** **, *** *******, *** *** **** ******* ******* ******** *** **** *******.

***********:

  • *** ***** ** ****_******** ********** *** **** ***** ** **** *******.
  • ***** **** ** ****_***** ******** *** ************ **** ** *********.
  • ***** ****** ** * **** 25% ****** *** ********.

Table 1: msft_customers

******** ******* ***** *********, ********* ***** **, ****, ***, ******, *** *** **** **** ******.

********_**: ***, ****: *******, ***: ***, ******: *******, ****_****: ****

Table 2: msft_products

***** *********** ** ********, **** ** ******* **, ****, *****, *** ********.

*******_**: ***, *******_****: *******, *****: *******, ********: *******

Table 3: msft_sales

******* ******* ** ***** ************, ********* *** **** **, ******** **, ******* **, **** ** *** ***********, *** *** ******** ** ******** ****.

****_**: ***, ********_**: ***, *******_**: ***, ****_****: ****, ********: ***

Last Submission

postgres

No submission yet for this engine. Run and submit your query to save it here.

Copied
Expected results

Submit a query to compare against expected output.