Department of Product

Department of Product

Share this post

Department of Product
Department of Product
🧠 Knowledge Series #2: SQL explained

🧠 Knowledge Series #2: SQL explained

Understanding SQL and how to write simple SQL queries

Rich Holmes
Jul 04, 2023
∙ Paid
10

Share this post

Department of Product
Department of Product
🧠 Knowledge Series #2: SQL explained
2
1
Share

🔒The Knowledge Series is a series of easy to read guides designed to help you plug the gaps in your tech knowledge so that you feel more confident when chatting to colleagues. Clearly explained in plain English. One topic at a time.

 If you’re a free subscriber and you’d like to upgrade to receive them you can do so below. Or you can find out more about paid access here.


Hi product people 👋,

Rich from the Department of Product here! In this Knowledge Series guide we’ll delve into a useful skill for anyone to have: writing basic SQL queries.

I remember at the start of a new role a few years ago being sat in a meeting about customer retention and engagement. At the end of the meeting, my boss turned to me and said: “oh and if you don’t mind, can you just write a few SQL queries to grab the data we’ve just discussed?”.

I mumbled a “yeah, sure thing” and quickly headed back to my desk to try to figure out what SQL was so that I could attempt to cobble together the required data. In the end, since time was of the essence, an engineer had to do it for me as I didn’t know what I was doing. But soon after that, I made it a personal ambition to learn enough SQL so that that never happened again. 

Coming up in this 🧠 Knowledge Series guide:

  1. What is SQL and what’s the difference between SQL and noSQL?

  2. Examples of simple SQL queries you can write

  3. How to use ChatGPT to write queries for you

  4. Useful tools you can use for SQL

Let’s get to it.


What is SQL?

SQL stands for structured query language . 

SQL retrieves information from a database. This process is known as ‘querying’ a database.

What’s querying?

Querying is like saying to your database: ‘hey database, show me all the customers on this package’ and the database returns a result, known as a ‘result set’. The result is the answer to your query.

SQL is a database-specific programming language that is used by engineers, data scientists, product managers and other tech professionals who want to interact with databases in some way. 

Some practical use cases for SQL

  1. Data retrieval - data in stored in databases and SQL is used to retrieve it

  2. Data management - SQL allows companies to create, modify and maintain database structure and optimise database performance.

  3. Backend development - SQL is commonly used in backend development since it allows developers to integrate SQL queries within an application. It is often used in combination with programming languages to interact with databases.

The difference between SQL and noSQL

You may have also heard of noSQL. SQL and noSQL are the broad distinctions made between 2 types of databases. We’ll cover databases in a separate post but for now these are the most important distinctions to know about.

This post is for paid subscribers

Already a paid subscriber? Sign in
Š 2025 Department of Product
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture

Share