r/SQLOptimization • u/Hairy_Border_7568 • Sep 08 '25
SQL Struggles: Share Your Most Frustrating Moments in Writing Queries
I’m working on a small AI project that generates and optimizes SQL queries. Curious: what’s the most frustrating part of writing or optimizing SQL in your work?
11
Upvotes
•
u/mikeblas Sep 08 '25
I'll approve this for now, since it's tenuously related to SQL optimization.
5
u/chunkyks Sep 09 '25
Recently I was consuming xml in sql and it made me want to murder someone. Xml, such a good idea but such a horrifying pain to actually work with.
1
u/alinroc Sep 10 '25
Most frustrating when writing - getting clear requirements.
Most frustrating when optimizing:
1
u/Known-Delay7227 Sep 11 '25
Most of my struggles are reading poorly written queries…nested queries upon nested queries with select *’s and no alias’s. So fun yaay
1
u/Unnam Sep 12 '25
Finding the right data fields from the right tables, knowing which ones to use and which ones to ignore. The right filters to be added. DATE related where etc clauses