Question 230

Customer Purchase Trend Analysis

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

********* * ***** ** ******* *** ***** ** ******** ******* *** **** ******** **** ***** **** ***** ************. ************, ******** ** *** ********'* ******** ** **********, **********, ** ************. *** **** ********, ******** **** ********* *** **** **** ** ***** ***** *********. ***** *** ***** ** '**********' ** **** ********** ******** ** ******* **** *** ********, '**********' ** **** ** ****, *** '************' *********. *** ****** ****** ******* *** ********'* **** *** *** ********** ******** *****.

*****:

  • *** *** *** ******** ** ******* *** ******* ******** ****** **** *** ******** ****.
  • ****** **** **** *** **** ***** ************ *** **** ******** *** **********.
  • *** **** ********** ** ********** *** ******** ***** ***** ** *** ***********.

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

  • ******** ****
  • ******** ***** (**********, **********, ** ************)

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.