Skip to content

data-becki/SQL-Challenge-Project-RPA-Customer-Segmentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

SQL Challenge Project RPA Customer Segmentation

The marketing department of Reputable Product Agency (RPA) is looking to segment the company users by a number of different criteria.

In this context, a segment is a subset of users that meet different conditions. Segments are used to send marketing campaigns to users who meet specific criteria or to measure the performance of specific marketing campaigns.

Use SQL queries to generate user lists for the marketing department. The users dataset is imported into the workspace.

The schema of the table is available in the users.png file.

Write the following queries:

  1. Start by getting a feel for the users table:

     SELECT *
     FROM users
     LIMIT 20;
    

    What are the column names?

  2. The marketing department wants to send a Born in the ‘80s email to the appropriate users.

    Find the email addresses and birthdays of users whose birthday is between 1980-01-01 and 1989-12-31.

  3. We are interested in the group of users that signed up prior to May 2017.

    Find the emails and creation date of users whose created_at date matches this condition.

  4. There was an A/B test performed on users that used cute animal clipart to encourage users to sign up. We’d like to see how the group that was shown ‘bears’ is performing.

    Find the emails of the users who received the ‘bears’ test.

  5. A total of 4 advertising campaigns were run over this period.

    There were two sets of ad copy (set 1 and set 2) and both were run on two search engine sites (AAA and BBB).

    The resulting campaign values are:

       AAA-1
       AAA-2
       BBB-1
       BBB-2
    

    Find all the emails of all users who received a campaign on website BBB.

  6. Find all the emails of all users who received ad copy 2 in their campaign.

  7. Find the emails for all users who received both a campaign and a test.

    These users will have non-empty entries in the campaign and test columns.

  8. Challenge: One of the members of the marketing team had an idea of calculating how old users were when they signed up.

About

Using SQL to segment company users by different criteria.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published