
What a generic question, right? Those of you who already know SQL likely have your answer to this question. However, for those of you who don't know SQL, or are looking to learn or expand your knowledge of SQL, why should you learn it?
This is the beginning of a SQL series I am creating, where I will discuss a range of topics (from basic to more advanced), such as:
Installing a database for practice
Composition of a SQL query
Summarizing data
Building tables
Optimization techniques
That being said, we have to start somewhere, right? So why not start with the 'why'?
What is SQL?
SQL simply stands for Structured Query Language. Long short, it is a language used for communicating with a database and interacting with the data contained within. It can be used to pull data, analyze and summarize data, update data, and interact with data in many other ways.
Initially built in the 1970s by IBM researchers, it was built for interacting with structured and relational data in databases. Since its inception, many different flavors of SQL have been developed, and it has become one of the gold standards for interacting with data.
Why SQL?
The answer to "Why SQL?" can take many forms because there are a lot of reasons you should learn and utilize SQL. However, depending on your use case will likely shape your reasons.
Some Subjective 'Why's
Let's start with some more subjective reasons for learning SQL that depend on your use case or profession.
Software Developer
Think this should be pretty obvious, but if you're a software developer, you should know SQL, because well, BACKEND.
Unless you are developing systems-level software or working solely in memory, you will work with a database at some point in your career. It only benefits you to know SQL and to know how to write performant SQL.
But James, what about NoSQL? Well, sure, there are other options besides relational databases, such as MongoDB or Cassandra. However, according to Stack Overflow's 2022 developer survey, when surveying professional developers, relational databases make up 4 of the top 5 database technologies used. MongoDB was #5. Regardless of preference, relational databases are popular, and so is traditional SQL. So it will only benefit you to know it.
Analysts, Data Scientists, or other Data Professionals
If you're a data professional, knowing SQL will only enable you to self-serve utilizing your company's application database or warehouse. It's almost required to know SQL to be able to pull, transform, and summarize your data.
With big data technologies implementing SQL engines, knowing SQL can also enable you to work with these tools without having to learn PySpark, Scala, or other languages. So it's a future-proofed skill that will only continue to allow you to do your job better.
As well, for a lot of newer data professionals, the focus is on tools such as Python, and less on SQL. Python is an amazing tool, that is capable of A LOT. However, I can almost guarantee you that you won't be solely working in Python. Leveraging SQL's strengths will only make your processes quicker and more robust.
Everyone else
Why should everyone else know SQL? It's hard to ignore that our world is data-oriented, with every industry becoming more so as you read this. Knowing and learning SQL can differentiate you drastically in the workplace.
If you're able to self-serve and pull data, that will put you leaps and bounds above anyone else who doesn't know SQL. Namely, if you utilize Excel to pull data from a database and perform manipulations; SQL can likely perform those same transformations in less time and is less error-prone.
Learning SQL isn't a wasted effort, as it's something that is around to stay and only has the potential to benefit you.
Some Technical 'Why's
Besides the more subjective reasons, there are a lot of other reasons SQL is a great language to learn and utilize.
I can't take credit for all these thoughts, I found an article by Robin Linacre discussing why SQL should be a primary choice in data pipelines that inspired many of the points. If you haven't read it, I'd highly recommend it. Namely, if you're a data engineer. However, these points are great to share in a broader context.
SQL is easy to read and understand
Of all the coding languages I've used and learned, SQL is by far one of the easiest to learn and understand. Of course, you can have some CRAZY implementations of SQL that are a nightmare to interpret, but that goes for any set of code.
SQL is a very high-level, declarative language, meaning you specify WHAT you want versus HOW to do it. It makes SQL simple to implement and understand. Because of this, it means it is a language that can span multiple career disciplines. Even though SQL is relatively simple and easy to understand, it's incredibly powerful, and it can deal with incredible complexity.
SQL is old
A lot of you might say "well that's not a good thing." I'd argue exactly the opposite. SQL has been around for a LONG time as compared to other languages.
There are reasons for this, but given its age and the fact it's still around, you can bet it's undergone continuous improvement during that time, optimizing both how it processes data and how much data it can handle. All without changing the syntax (for the most part). That's pretty awesome for a language.
Given it's so old, and still in use, you can bet it will continue to hang around, which gets into my next reason.
SQL is being adopted by modern tools
There are a lot of modern tools such as Databricks and Snowflake that have implemented SQL syntax. Sure, you can code in PySpark, Scala, or other languages. However, not everyone knows these languages.
Those developing these technologies knew the importance of implementing a SQL engine because this would enable more people to work with these tools. As well, utilizing SQL makes code much more readable, allowing more people to be productive with these toolsets.
Other Why's
There are plenty of other reasons but here are a handful of other reasons:
In-built functionality - sum(), count(), distinct, avg(), row_number() - as well as many others, are all native functionality in SQL. SQL is powerful right out of the box without a lot of extra coding.
Optimizations - things such as indexing and partitioning; SQL has a lot of in-built options for optimizing and speeding up queries and tasks.
Testable - SQL is highly testable and allows for quick and easy validation of results as you go, enabling quick development.
Relatively unchanging - SQL comes in different flavors based on the distribution you are working with, but you can trust that most functionality exists across all distributions, so if you ever have to refactor or switch distributions, you can trust your SQL changes should be relatively minimal.
Dependency management - if you're a software or data engineer, you know how painful dependency management can be. Did I install this package? Do I have this software installed? Do I need this driver? With SQL, as long as the data is in the database, generally, you're good to go. No additional steps are needed, as SQL manages all the underlying dependencies for you.
Conclusion
As you have read, there are quite a few reasons you should learn or utilize SQL. That being said, SQL isn't a solution for every situation. No skill is "one size fits all". Just like you can't use carpentry skills when working metal, however, that doesn't diminish the value of carpentry. So, you should try to learn as much as you can, SQL included!
Thanks for reading!
About the author
I am Data Engineer with a big passion for learning as much as he can. I enjoy the outdoors, mountain biking, finding cool ways to solve new coding problems, and teaching others to code.
Comments
Join the discussionNo comments yet. Be the first to comment.






