An Introductory SQL Tutorial: How to Write Simple Queries
Data-Driven MarketingAn Introductory SQL Tutorial: How to Write Simple Queries
Ever heard of SQL? You may have heard about it in the context of data analysis but never thought it would apply to you as a marketer. Or, you may have thought, “That's for the advanced data users. I could never do that.”
Well, you couldn't be more wrong. The most successful marketers are data-driven, and one of the most important parts of being data-driven is collecting data from databases quickly. SQL is the most popular tool out there for doing just that.
If your company already stores data in a database, you may need to learn SQL to access the data. But don‘t worry — you’re in the right place to start. Let's jump right in.
How to Query a SQL Database
Ensure you have a database management application (ex. MySQL Workbench, Sequel Pro).
If not, download a database management application and work with your company to connect your database.
Understand your database and its hierarchy.
Find out which fields are in your tables.
Begin writing an SQL query to pull your desired data.
With SQL, you don’t need to download and open a huge Excel spreadsheet to get the answers you seek.
You can ask questions like “Which customers purchased a red jumpsuit in the past six months?” and SQL fetches the data from your database and returns it to you without you needing to manually sift...
/