top of page

How I use SQL to ask better questions, not just pull data

  • Anna's Data Journey
  • 9 lut
  • 2 minut(y) czytania

When I first started using SQL, it felt like a tool for getting data out of a database.

Write a query. Export a table. Move on.

Over time, I realised that SQL is much more than that.

Used well, it becomes a way of thinking - a way of turning vague business questions into something precise and testable.


Starting with a question, not a query

Before writing any SQL, I try to clarify what I’m actually looking for.


Not:

“What data do I need?”


But:

“What am I trying to understand?”


Is it about performance?

Trends?

Exceptions?

Patterns over time?

Once that is clear, the query usually becomes simpler - and more focused.


Breaking down complex problems

Many business questions sound simple on the surface.


“Why are sales down?”

“Which customers are most valuable?”

“Where are delays coming from?”


In practice, they often involve multiple dimensions.

SQL helps me break those questions into smaller parts - filtering, grouping, comparing - until the underlying pattern becomes visible.

This step-by-step approach reduces guesswork and makes the analysis more reliable.


Using SQL to validate assumptions

SQL is also where I test early assumptions.

Instead of relying on intuition, I try to check:

  • whether trends are consistent

  • whether outliers really matter

  • whether relationships hold across different segments


Simple queries can often confirm - or challenge - what people expect to see.

That makes later discussions more grounded and constructive.


Knowing when “good enough” is enough

Not every question requires a complex query.

Sometimes a straightforward aggregation answers what is needed.

I try to avoid overcomplicating queries just to make them look impressive.

Clarity and accuracy matter more than cleverness.


Connecting SQL with the bigger workflow

For me, SQL rarely works in isolation.

It usually feeds into:

  • Excel for exploration

  • Power BI for communication

  • discussions with stakeholders


In that sense, SQL is a bridge between raw data and meaningful insight.


Why this approach matters

Using SQL this way keeps the focus on understanding, not just extraction.

It helps avoid:

  • pulling unnecessary data

  • answering the wrong question

  • building analysis on weak assumptions

Most importantly, it supports better decision-making.

Good SQL doesn’t start with syntax. It starts with a clear question.

This way of using SQL fits naturally into how I approach analysis alongside Excel and Power BI.


Komentarze


Follow Me

  • GitHub
  • LinkedIn
  • Microsoft_Outlook_Icon_(2025–present).svg

© 2025 By Nicol Rider.
Powered and secured by Wix

bottom of page