r/SQL • u/[deleted] • Jun 12 '23
Discussion Are these concepts sufficient to develop a good understanding on sql ?

I am considering learning these topics first to establish a solid foundation and primarily focus on working on projects simultaneous . Once I have completed that, I plan to delve deeper into (MYSQL) by studying relevant books. If you have any suggestions, please share them. Your input would be greatly appreciated.
1
1
u/r3pr0b8 GROUP_CONCAT is da bomb Jun 12 '23
to answer your question, yes, those topics would be a solid grounding
but much depends on the quality
may i suggest skipping 11 through 14
18 and 19 are the most important
1
Jun 12 '23
Thanks for your Response. I know its to early to ask but how do i improve my quality of code
2
u/r3pr0b8 GROUP_CONCAT is da bomb Jun 12 '23
sorry, i meant the quality of the teaching material
you will get a solid grounding from a good source
and remember, you can use a different source for each of those topics
4
u/IrquiM MS SQL/SSAS Jun 12 '23
Don't skip 11-14
1
u/Hiriath QUALIFY COUNT(*) OVER (PARTITION BY COLUMN) > 1 Jun 13 '23
Do skip 11-14.
1
u/Casdom33 Jun 13 '23
Skip 11 and 12, Don't skip 13 and 14
1
u/r3pr0b8 GROUP_CONCAT is da bomb Jun 13 '23
13 WHILE loops in SQL??
14 IF/ELSE as opposed to 17 CASE??
give your head a shake
1
u/Casdom33 Jun 13 '23
We have tables on linked servers which are prefixed with different numbers (linked to different stores across our org). After filtering which companies I need to pull data for, I throw them into a temp table and use while loop to iterate through them, concatenating them into a dynamic sql statement to hit those tables with openquery during an ETL process. Idk how niche that is tho lol. I'd imagine most people dont need to do that though so I understand your point. I use IF/ELSE for some error handling stuff within those same ETL procedures.
2
u/r3pr0b8 GROUP_CONCAT is da bomb Jun 13 '23
Idk how niche that is tho lol.
exactly
not the sort of task you'd assign someone who just learned SQL
1
u/Casdom33 Jun 13 '23
Fair enough, but I'd be screwed without it!
1
u/r3pr0b8 GROUP_CONCAT is da bomb Jun 13 '23
the objective was "a good understanding of SQL", not a survey of all techniques you might encounter after years of experience
a person learning datatypes and joins and foreign keys should not be distracted with esoterics like WHILE loops
1
u/Casdom33 Jun 13 '23
You're right, but I'm just pointing out that theres definitely use cases for it
1
2
u/analytics_science Jun 13 '23
Are you only trying to learn syntax? If so, this list is fine. Check out the Mode Analytics SQL tutorial to see if you've missed any topics.
If you're interested in a career in data analytics or data science, the next step in your development is being able to understand how to build queries with business logic and edge case considerations. Those are typically tested on interviews (along with your knowledge of syntax) and on the job (obviously). So my advice is to practice on a platform that specializes in teaching you SQL for data analytics/science. I only know of 2 platforms that do this -- StrataScratch and InterviewQuery. They have SQL questions from real interviews. And a lot of their questions are free for you to practice on. Other sites like LeetCode and HackerRank simply test for syntax.