SQL for Beginners: What Is SQL and Why Does It Matter?
SQL stands for Structured Query Language, and despite the intimidating name, it does one job: it lets you ask questions of a database and get exact answers back. If Excel is a tool for working with data you can see on a sheet, SQL is a tool for working with data that lives somewhere much larger — a company's full sales history, every customer record, millions of rows that would crash a spreadsheet.
Why Data Analysts Use SQL (Instead of Just Excel)
Excel is brilliant up to a point. But real business data usually lives in a database, not a spreadsheet — and databases can hold millions or billions of rows that Excel simply can't open. SQL lets you query that data directly: pull exactly the rows and columns you need, filter them, combine them across tables, and summarize them, all without ever downloading the whole dataset. It's faster, more precise, and it's the standard tool for working with data at scale.
The Core SQL Commands You'll Use Daily
Almost everything in SQL is built from a small set of commands used together. Here are the five you'll reach for constantly:
- SELECT — chooses which columns you want to see.
SELECT product_name, pricepulls just those two columns. - WHERE — filters rows based on a condition.
WHERE region = 'Lagos'returns only rows matching that condition. - ORDER BY — sorts your results.
ORDER BY price DESCsorts from highest to lowest price. - GROUP BY — groups rows together for summary calculations, like totals per category.
- JOIN — combines data from two or more tables based on a shared column, like matching orders to customer names.
A Simple Example Query
Here's what a real, beginner-level SQL query looks like — asking "what are our top 5 best-selling products in Lagos?":
SELECT product_name, SUM(quantity_sold) AS total_sold
FROM sales
WHERE region = 'Lagos'
GROUP BY product_name
ORDER BY total_sold DESC
LIMIT 5;
Read in plain English, that's: "From the sales table, look only at Lagos, add up quantity sold per product, sort from highest to lowest, and show me the top 5." Once you can read a query like that, you're already most of the way to writing your own.
Do You Need to Learn Excel First?
Not strictly, but it helps. Excel teaches you how to think about rows, columns, filtering, and summarizing — SQL is really the same logic, just written as text instead of clicked through a menu. Most people find SQL clicks faster once they've already built that mental model in a spreadsheet.
How to Start Learning SQL
The mistake most beginners make is learning SQL syntax in isolation, without ever touching a real, imperfect dataset. The fastest way to get comfortable is to practice on data that looks like an actual job — with joins across multiple tables, inconsistent formatting, and real business questions to answer, not just "SELECT * FROM table."
Learn SQL Server on a real e-commerce dataset
EDAH's SQL for Analysts program is a 4-week, query-first course — from SELECT basics to multi-table joins you'd actually use on the job.
See the SQL program →