r/learnSQL • u/ParticularBet5580 • Aug 19 '26
How do i grasp Concepts in SQL easily?
I'm struggling to understand the concepts of sql badly, i mean which framework i mean POV is best for grasping? Could you guys share your thoughts. I want to grasp, so that i can tell to the people like 5 years old kid, non tech persons.
10
Upvotes
3
u/TacitusJones Aug 19 '26
What concepts do you not get?
Gotta give us something to work with
9
u/phesago Aug 19 '26
SQL is not complex at the conceptual level.
At its very basic level SQL is a set of commands for databases. Thats it. Now lets expand to the simplest example
SELECT dataPoint1, dataPoint2 FROM dataSource
Pretty simple right? Lets expand further:
SELECT dataPoint1, dataPoint2 FROM dataSource JOIN anotherDataSource
Again pretty straightforward. Once you start getting more and more familiar, everything in SQL is about telling the database to do SOMETHING with the data. SELECT (you as a human might say 'get' instead), UPDATE (it), DELETE(it), or INSERT (it), 'it' being the data of course.
It doesnt get more complex than that really. Yes you'll see fancy functions, or nifty techniques to solve certain problems, or thousands of lines of code to make multiple different sources fit into a clean fancy end point - it all boils down to simple commands about how data should be interacted with.
If you keep it simple stupid, you'll find it's WAY easier.
1
u/Fensirulfr Aug 20 '26
How comfortable are you with set theory, and declarative languages (as opposed to imperative languages)?
2
u/conor-robertson Aug 19 '26
A good way to grasp SQL is to stop thinking about syntax first and think about what you’re asking the data to do.
For example, imagine a database as a collection of labelled boxes.
WHEREdecides which items you take out,GROUP BYputs similar items into piles, and aJOINconnects information from two different boxes using something they have in common.Then practice until you can explain why you used something, not just how to write it. If you want something hands-on, QueryCase is worth trying - it teaches SQL through detective-style investigations, so the concepts have context and you’re constantly applying them to solve a problem.
If you can explain your query to a non-technical person without using SQL terminology, that’s usually a good sign you genuinely understand it.
1
u/Rat_Man_420 Aug 19 '26
I would watch some basic intro videos or maybe get an online course that will let you practice. I learned by writing SQL on the job and reverse engineering queries that were given to me by others.
1
u/_chonky04 Aug 19 '26
I'd recommend watching data with baraa sql course and then apply it onto a project or stratascratch
1
u/darrylhumpsgophers Aug 19 '26
Maybe try posting in your native language. Then we can use translate to try to understand you better.
1
u/nerd_airfryer Aug 19 '26
First of all, SQL is an implementation not a concept by itself
It's an implementation of the relational model, so if you don't understand the relational model, relational algebra and data normalization. You will definitely struggle in SQL
How to explain it to a non techies? I usually start with "employees table in an excel file", how can we differentiate between different employees? Name is not enough, so we use an id => boom primary key explained
What if we want to include different leaves for each employee, an employee can take multiple leaves, a leave day belongs to one employee => relationships explained
How can we append leaves to employees data? If we use the same employees table, we will have to repeat employee data for each day, what if this employee got their name updated, we will have a headache updating all of the names, so why not we separate them in another table and link between the table with employee id? It will raise a question, what if id is changed? I say: technically it can happen, practically it never happens and it shouldn't => Normalization explained
1
u/venkat_deepsql Aug 19 '26
SQL is all about relational algebra. If you understand the core concepts like unions, intersections, set operations... you could easily grasp the SQL. It's the only language that has strong mathematics :)
1
u/dumi_007 Aug 19 '26
It takes practice and time to feel fully comfortable.
As far as getting SQL during training, may I offer some opinions based on what could be holding you back :-
Either way, persevere. Don't worry about what me (a guy from the Internet) says. May the Force be with you
1
u/2daytrending Aug 21 '26
Try thinking about SQL in plain english first, what are you trying to find or change the data? Once that makes sense, the SQL syntax starts feeling a lot less random.
1
u/dwpj65 Aug 21 '26
Practice makes perfect.
0
u/MantisMaybe Aug 19 '26
No offence meant, but you're not great at expressing yourself. I assume you're not a native English speaker, and that this at least partially has to do with the difficulty of grasping SQL. I I would consider picking up whatever SQL resource is available in your native language, at least to help along with the English resources.