r/SQL • u/Suspicious_Orchid770 • Oct 09 '26
Discussion AI-coding tools could be breaking the junior engineer pipeline
AI helps juniors code, not learn.
r/SQL • u/Suspicious_Orchid770 • Oct 09 '26
AI helps juniors code, not learn.
r/SQL • u/TravellingBeard • Oct 09 '26
When upgrading from SQL Server 2012 to SQL 2019, statistics go all wonky and deadlocks often occur on queries that worked well before. It becomes a pain, especially when the users say "it worked before" and they don't want esoteric excuses.
I'm curious if this has happened in other database technologies where you've upgraded to newer versions.
r/SQL • u/Beneficial_Zone_6883 • Oct 08 '26
You were all so right, nobody could possibly do the job without referencing and now I realize how ridiculous it was feeling I should be able to do it blind.
I really struggled and boy did I make some mistakes but I am already gaining confidence and have very few errors to battle.
So for what it’s worth thank you and for anyone else overwhelmed and second guessing your decision, just breathe, take a step back and breathe again, you can absolutely do this!
I only had a single jerk response, likely rooted in a bit of jealousy which is phenomenal for Reddit . Hopefully in time I myself will be able to help others too
r/SQL • u/ZookeepergameFew6406 • Oct 09 '26
Hello all
I’m currently working on something where object X is linked to object Y via two intermediary tables Z1 and Z2. There are many use cases where we’re interested in objects from type X, but we need to populate the object X with all links to Y. (via Z1 and Z2). Think of fetching users, and wanting to query roles for companies (where a user can have many roles for many companies).
Because our use case makes it so there can be MANY links for a single user, we could be fetching 1000s of rows for a single user, just to build a dictionary of them (key: Y, values: values from Z1 and Z2) and end up with a single entity, meaning we duplicated all data in X for every row returned. This is clearly quite inefficient, and thus I’m looking for alternatives.
I’ve seen using aggregation to collapse everything into one row, but that can be problematic I’ve been told by peers. The same way, maybe building JSON is an option, and then directly parsing (in C#).
Anyway, All help would be appreciated on how you would reduce the amount of data returned!
Edit: one more option that’s possible is just querying X, and then querying the rest afterwards in a sequential chain.
r/SQL • u/erinstellato • Oct 09 '26
r/SQL • u/Fun-Chicken6946 • Oct 08 '26
AI has made it way too easy for people to code up slop in whatever form and turn it into “another SQL database client,” whether it's in Electron, Tauri, or whatever the next hot framework for building database clients is.
That takes away from the uniqueness of what made those tools special before. Most of them are literal copies, and there's literally nothing unique about them except that they look “modern.” And it's a real shame because there are some tools that people actually put a lot of effort into making, while others are just literal Claude Code garbage. And for those people who actually put effort and human thought into their projects... it gets hidden in a pile of garbage.
How are you guys deciding whether or not to give a database tool a shot anymore?
r/SQL • u/blurryperiphery • Oct 08 '26
r/SQL • u/Waste-Strike2691 • Oct 08 '26
It keeps stopping me from adding multiple rows but I can successfully run one row of instances but I can't seem to get it to work for multiple rows and I'm not too sure if I were to run one row of code per time How would i do it for all?
do i have to make new queries?
r/SQL • u/Mindless-Piece-47 • Oct 08 '26
MariaDB Foundation continues expanding TAF with PostgreSQL support
More engines, more reproducibility, more value for contributors and the ecosystem.
https://mariadb.org/mariadb-foundation-adds-postgresql-to-its-engine-agnostic-testing-framework-taf/
Have fun benchmarking!
r/SQL • u/IndicationAntique667 • Oct 08 '26
r/SQL • u/Automatic-Heart-831 • Oct 07 '26
I tried to use both methods in order to save some coding but still didnt get the exact difference on using having and qualify as a filter in the end of a query. Can someone help me to understand the difference and when is recommended to use each?
r/SQL • u/Suspicious_Orchid770 • Oct 07 '26
Years without incidents proves nothing at all.
r/SQL • u/NationalStill6968 • Oct 07 '26
Hey everyone,
I am a Spring Boot developer looking to level up my backend game by deeply understanding PostgreSQL and its internal architecture.
While I am comfortable writing SQL, using Spring Data JPA/Hibernate, and managing basic migrations, I often feel like Postgres is a black box. I want to move past just treating it as a data store and actually understand what happens under the hood.
Specifically, I want to learn about:
Can anyone recommend high-quality books, courses, blogs, or video series that bridge this gap? Bonus points if they have a practical focus or tie into common Java/Spring backend patterns!
r/SQL • u/Klutzy_Solid5200 • Oct 06 '26
I want to know how ppl compare large source and target tables using sql. If both tables have millions of records, comparing every row and column can take a lot of time.
For example, if some records are missing, extra, or have different values between the two tables, how do you usually find them? do you use joins, Except/Minus, hashes, or first compare things like record counts and totals and then check the differences?
Are there any techniques that can make the comparison faster?
r/SQL • u/Practical-Excuse6933 • Oct 06 '26
Hello, I've been working on a personal open source project written in GO, its a command line tool that aims to create valid .sql files for each object in your database so that you can push to git to keep track as the database changes in the development cycle.
The project is [DatabaseBlueprint](https://github.com/Hennie5229x/DatabaseBlueprint)
Currently I have CLI support for Linux/Win/Mac and creating of all schema objects + data to executable .sql files and the schema migration scripts is still a work in progress.
I would love honest feedback from devs who work regularly in sql server.
Any type of feedback is welcome, I've identified a "gap" in a typical database heavy workflow that I am trying to fill for myself, but I'm sure other people also seek an easy way to track/version control their databases along side the projects back end code in git.
About the project: Written in GO, compiles to a stand alone binary, installable and runnable in terminal by using "blue"
Currently only supporting SQL Server, plan is to expand in the future
r/SQL
•
u/ujeevelesslulbs
•
Oct 07 '26
r/SQL • u/Hass2307 • Oct 06 '26
Does anyone have a video tutorial on how to use the SQLloader on TOAD