0% found this document useful (0 votes)
26 views2 pages

SQL Coding Challenge

The company wants to understand which age groups represent their most sticky customers for a marketing campaign. A sticky customer has had at least two transactions related to SubscriptionX in the past year. Participants are asked to write a SQL query to output counts of sticky customers by age group from the past year using any familiar SQL variant. The query should be emailed to [email protected].

Uploaded by

curiouser
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

SQL Coding Challenge

The company wants to understand which age groups represent their most sticky customers for a marketing campaign. A sticky customer has had at least two transactions related to SubscriptionX in the past year. Participants are asked to write a SQL query to output counts of sticky customers by age group from the past year using any familiar SQL variant. The query should be emailed to [email protected].

Uploaded by

curiouser
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

SQL Coding Challenge

Objective:

A company sells ​SubscriptionX​ to its customers. To guide their efforts in a marketing campaign,
one of the company’s stakeholders would like to understand which age group represents their
most sticky customers. They have come to you asking for counts of sticky customers by age
group over the past year.

Definitions / Database Design:

A sticky customer is defined as a customer who had at least two subscription-related


transactions to SubscriptionX in the past year.

You write a SQL query that outputs this data:

Challenge:

How would you query these tables to produce the resulting data set? (You may use any SQL
variant you are most familiar with (PostgreSQL, MySQL, etc.)

Uploading:
Email your query to: ​[email protected]​ Any file type/format is acceptable (.txt, .sql, .doc, or
even in the body of the e-mail)

You might also like