Question 143

Customer purchase report

Premium Access

Unlock this Afterpay 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
  • ***** * ***** **** ******* ******** **,  ********* ****, ******** **, ******** **** *** ****** ** *********.

  • *** *** ********* 10 ********_**:

    • 8001, 8002, ..., 8010

Table 1: ap_customer

********'* ******** **** ****.

  ***_****     | ***_****
---------------+-------------------
**             | ******
****_****      | ****

Table 2: ap_merchant

********* **** *********** ******** ******** ** ***** ******** ********.

  ***_****       | ***_****
-----------------+---------------------
**               | ******     
****             | ****

Table 3: ap_order

********'* ***** *****

  ***_****      | ***_****
----------------+-------------------
**              | ******
****            | ****
********_**     | ******
********_**     | ******
*****_*******   | *******(10)
********_****** | *****

Sample results


        
    

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.