This website will help you understand how can marketers use databases in order to better target their audience.
-
Scenario
To do this, you will need to refer to your company's database, that way you will have in your posession the names and the emails of the previous buyers. Your ultimate goal is to send specific emails to a specific category of your database. For example, you will be sending an email containing the company's new line of shoes for women almost exclusively to the female category of your database. In coding terms, the process of selecting a part of your database is called "query" and in marketing it is called "targeting"
What is marketing?
- Understanding the client.
- Running a competitive analysis.
- Analyzing the consumers and their behaviors.
- Defining a strategy.
- Building a marketing mix.
- Analyzing the results.
- Revising the strategy.
Targeting an audience.
Indeed, in marketing, consumer analysis is called "targeting" the audience. Market targeting relies uppon the evaluation of the market segments based on the overall atractiveness of the segment (segment size, potential growth, profitability...) and on the company's objectives.
Targeting and databases.
A company, whatever its sector, has a large variety of customers. In order to be efficient, the company should be able to know its cleints and classify them according to several categories: gender, age, social and economic background, shopping behavior, personal situation... By classifying its clients and potential clients into categories, companies are able to better target their audience and launch their product successfully.
But what relationship is there between targeting in marketing and databases?
Glad you asked ;)
First of all, we need to define what a database is: a database refers to a set of related data and the way it is organized (definition excerpted from Brightspace, Designing With Web course ). In other words, a database is a file that contains any kinds of information you can collect from a customer: name, last name, gender, age, profession, email, preferences... This information is gold when a company is looking to launch a new product or wants to win the loyalty of its clients.
However, targeting an audience in marketing is a costly process because a given company will want to reach the largest number of customers at the lowest cost possible.
This is where it gets interesting. Databases are very helpful when wanting to target only a specific category of people.
Coding and using a database.
Here is how you can target a specific audience thanks to databases.
The first step is to access the database of your company. Here, we will be using a database from Google's Firebase.
Once you access the database, you should have something like this:
Congratulations, you have accessed information about your database!
Now let's get back to our scenario. Remember: your mission is push previous customers into purchasing a Nike product. For that let's select three different categories of people that we are going to select by querying the databases.
Target women. Target men. Target teenagers. Sending the emails to our targets.

Great! you've learned how to query data from a database throught Glitch. Now let's do the same thing for men using the same principle.

Awesome! you have mastered the query of data according to gender specificities. Now, before entering the email sending phase, let's take a look into query according to age.

Well done, we are finally over with the query of data in a database, but keep in mind that you can query many more things as shown in Querybase.
Alright, so far we have managed to query and therefore select and target a specific audience. Now that we have done that we need to send the emails to our targets. For that we can use Nodemailer, a platform that provides source codes to send emails. If you copy the code shown on Nodemailer, you should be able to get something like this:

Our job here is done! Here's lol cat meme to congratulate you for having gone through everything: you now know how to code databases and how they can be helpful for marketers in targeting their audience.
