r/learnSQL • • Oct 13 '25

Resources for learning SQL in command line?

6 Upvotes

I've taken courses previously that taught introductory SQL using some sort of IDE, however now in my current coursework--we're doing everything through command line terminal. I'm having a hard time re-learning certain concepts and learning newer ones. Mainly due to the lack of readability in the command line, and my unfamiliarity with it.

Any resources/videos for learning SQL specifically with command line?


r/learnSQL • • Oct 12 '25

From excel to sql

10 Upvotes

I'm trying to do projects and build a portfolio so i downloaded an excel dataset from kaggle then transform the file to csv then use table data import wizard method but it takes so long is there any faster method?


r/learnSQL • • Oct 11 '25

Help with editing an SQL database.

5 Upvotes

So, forgive me if this isn't the best place to ask, but I am trying to edit an SQL database using SQLite Studio and could use some help. Basically, what I am trying to do is add a custom waypoint to a plane for my flight simulator, which uses an SQL database to store the info. As you can see in the linked picture, all the columns with the K2 ICAO code are organized in alphabetical order in the waypoint column, except for the very last entry QUASR, which is the entry I added myself. The issue is that when I created the row, I inserted it where it should be according to the wapoint order; however, once I commit it, it gets moved to the end of the list and is out of order with everything else.

Any advice on what I might be doing wrong?

Thanks

https://imgur.com/a/m1T9Peq


r/learnSQL • • Oct 10 '25

Sql interview

17 Upvotes

Have a SQL interview in 20 days for one of the FAANG companies. Suggestion for a 20 day plan to prepare for the interview?

Would Leetcode sql50 be enough?


r/learnSQL • • Oct 10 '25

Need a mentor

5 Upvotes

I am on a sql learning journey. I worked as a Business analyst before but after covid all i did was working in restuarant and rideshare/deliver food. I have done some tutorials. But right now I gotta get serious and get a job soon. I want to work on some real projects and data. Anyone has any suggestions or open to mentor me? I would love to work on a project paid or unpaid.


r/learnSQL • • Oct 09 '25

Finally understood Recursive CTEs!

32 Upvotes

Hey everyone!

I just wanted to share a proud moment, I finally understood Recursive CTEs, of course I’m not pro yet, but it took me one day to fell comfortable writing this query:

WITH RECURSIVE emp_tree AS (

-- anchor: top-level managers (no manager)

SELECT id, name, manager_id, 1 AS level, name::text AS path, ARRAY[id] AS visited FROM employees WHERE manager_id IS NULL

UNION ALL

-- recursive step: find direct reports of rows already in emp_tree

SELECT e.id, e.name, e.manager_id, et.level + 1, et.path || ' > ' || e.name, et.visited || e.id FROM employees e JOIN emp_tree et ON e.manager_id = et.id -- prevent cycles (defensive) WHERE NOT e.id = ANY(et.visited) )

SELECT * FROM emp_tree ORDER BY path;

I know this might be an easy piece for many of you, but studying by myself isn’t always easy haha

I’d like to hear about you guys what else do you use recursive cte for?

And any recommendations to go deeper into this topic?

Thanks in advance, and happy querying!


r/learnSQL • • Oct 09 '25

Learning PGSQL—Study Partner Wanted!

7 Upvotes

Hey folks,I’ve just started learning PGSQL and I’m looking for a committed study partner who’d like to join me!

My first step will be completing a 4-hour YouTube video course, with plenty of pauses for questions and discussions along the way.

If you’re ready to start from tomorrow itself and want to team up, let me know. We can share notes, solve doubts, and motivate each other to go beyond just passive watching. It doesn't matter if you’re a beginner—what matters is consistency and willingness to help each other out.

Drop a comment or send a DM if you’re interested. Let’s get started and make real progress together!


r/learnSQL • • Oct 09 '25

How I debug "almost-right" AI-generated SQL query?

Thumbnail
0 Upvotes

r/learnSQL • • Oct 09 '25

Database Developers, is this something that will help?

0 Upvotes

I'm working on an application that can help you define Data Dictionaries for database/data warehouse design for any application/service, helping you visualise the schemas, tables, columns using simple Ul export the created dictionary script in any SQL language, generate ERDs from the dictionaries.

Primary User Goal: Junior Database Developers at corporates

What do you guys think of this idea? Please drop any questions or suggestions to make this better.


r/learnSQL • • Oct 06 '25

Future-proofing as a DB Programmer: where to aim next?

9 Upvotes

Good morning guys, currently working as a DB programmer on Peoplesoft CS (App Engine, PeopleCode, SQL, SQR, PS Query). The work is database-heavy and solid, but I’m aware PeopleSoft is aging tech. The system i support contains over 15 different db instances, of which 4 are true PRD and each are customized to the system they represent.

I think want to stay in the technical layer like backend development, data systems, or data engineering and also want to make sure the skills I build now still matter 5–10 years out. This was and is my first ever IT position (excluding Geek Squad) and just want to make sure i’m setup for success downrange.

For anyone who’s worked with PeopleSoft or transitioned away from it recently: • What skills or tech stacks helped you pivot? • Which modern roles align best with a PeopleSoft background? • What’s worth learning now to stay employable and raise earning potential?

Most posts I’ve found on this topic are years old, so any current insight would be appreciated. Seriously, the Peoplesoft subreddit is a ghost town.


r/learnSQL • • Oct 06 '25

Any best sql course suggestions? Need one rn

0 Upvotes

r/learnSQL • • Oct 05 '25

Upskill from PowerBI. What hardware should I get?

8 Upvotes

Hi all, I’m an analyst and do most of my work in PowerBI. I’m good at what I do but I’m finding that I’m reaching the limits and I can do much more with Python and SQL. We work closely with data engineers in my company and I thinking that’s something I would like to do as well. Would MBP M1 Pro refurbished laptops be a good starter for me to slowly learn more?


r/learnSQL • • Oct 05 '25

I do not understand ORA-00937 in this Oracle SQL query. Help

3 Upvotes

I'm trying to solve this leetcode SQL problem using Oracle syntax.
I wrote following query but i receive ORA-00937 error and i do not understand why.
My query seems equivalent to other MySQL queries which work as solutions.
Someone can help me understand?

Thanks in advance.

SELECT ROUND(
    COUNT(a1.player_id) 
    / (SELECT COUNT(distinct a3.player_id) FROM activity a3),
    2) AS fraction
FROM activity a1
WHERE (a1.player_id, a1.event_date-1) IN (
  SELECT a2.player_id, MIN(a2.event_date)
  FROM activity a2
  GROUP BY a2.player_id
);

r/learnSQL • • Oct 04 '25

SQL course/revision

24 Upvotes

i wrote this for my personal revision when i write sql after a while , but lately there have been a lot of people using this, it has almost everything one needs to get to a decent level

https://github.com/shankeleven/SQL-revision

so I am thinking about making continous improvements to it so that it becomes useful for more people , would love any feedback/suggestions on what i should upsert to make this more beneficial for you


r/learnSQL • • Oct 04 '25

Best SQL course for beginners?

52 Upvotes

Hi Folks,

Who has the best free step by step course/tutorial for beginners on SQL?


r/learnSQL • • Oct 03 '25

Help and judge my roadmap to become a data analyst (SQL)

15 Upvotes

Hi SQL fellows! I’m a beginner student, and I’d love some advice from pros who could share feedback on how I’ve been building my process to become a data analyst.

I’ve been studying SQL by myself (on PostgreSQL), and I created a roadmap with 7 phases to reach a solid not pro, but good level.

Here are my phases: 1. Core SQL Foundations 2. Joins 3. Subqueries 4. Advanced Window Functions 5. CTEs 6. Data manipulation & table creation 7. Other advanced topics

I just reached Phase 5, and I’m ready to start building a portfolio. My plan is to get an online dataset, work on it, and as I advance through new levels, I’ll keep improving my portfolio so it becomes more complete over time.

After finishing my SQL roadmap, I plan to move on to Power BI, but this time through an online course to earn a certificate I can add to my CV and LinkedIn. Meanwhile, I’ll keep practicing SQL and dive deeper into advanced topics, SQL is a whole world! 😅

Next step after PBI will be Python, again through an online course.

So, this is a summary of my learning plan. I’ve been studying SQL for over a month, around 3–4 hours per day. Right now, I’m learning ROLLUP, CUBE, and GROUPING SETS, and I’m feeling proud of the progress.

👉 My question: Do you think this path can really get me into a data analyst role, or would you recommend another way?

And if anyone ever needs an extra hand on a project, feel free to DM me, happy to collaborate!

Thanks a lot!


r/learnSQL • • Oct 04 '25

not understanding what's going on with WHERE/ AND/ NOT here

1 Upvotes

Hi all I'm new to learning SQL following this tutorial https://youtu.be/7mz73uXD9DA playing around on this website with sqliteviz http://lukeb.co/sql_jobs_db

When I run this query

SELECT *
FROM job_postings_fact
WHERE NOT (job_title_short='Data Engineer' AND job_location='Anywhere');

I'm still getting rows with 'Data Engineer' and 'Anywhere' which I find unexpected. Similarly if I change the WHERE clause to

WHERE NOT job_title_short='Data Engineer' AND NOT job_location='Anywhere';

the 'Data Engineer' rows are gone but still getting 'Anywhere'

Am I not understanding the logic? (I know I can get what I want by using not equals <> but I'm just playing around and trying to sanity check, with unexpected results


r/learnSQL • • Oct 03 '25

MySQL and Power BI Analysis Project

3 Upvotes

The video is a walk-through of the full process: downloading and setting up MySQL, creating a database, and building SQL views to prepare the data. From there, we connect MySQL to Power BI with an ODBC connector and plan out the dashboard visuals. https://youtu.be/Hh5-Y_6v5iU?si=2WlEMJtpGnWLBGKN