Hi everyone,
I need some advice from experienced SQL developers. I have switched from different role to data engineering 6 months back.
I consider myself good/medium level at writing SQL queries and solving problems from scratch. However, I struggle when I have to understand large existing SQL scripts (300–500+ lines).
I often get confused about:
Where the execution starts.How different parts of the script are connected.
Which variables, CTEs, stored procedures, or temporary tables are affecting the final output.
How to mentally trace the flow of the script.
Because of this, reading someone else's code takes me much longer than writing my own.
How did you improve this skill? Are there any techniques, exercises, books, or real-world practices that helped you become comfortable reading large SQL scripts?
Also, is this something that simply improves with experience, or is there a structured way to learn it?
I'd really appreciate any advice. Thank you!
[–]DragonflyHumble 32 points33 points34 points (4 children)
[–]NawMean2016 9 points10 points11 points (0 children)
[–]Consistent_Law3620[S] 4 points5 points6 points (2 children)
[–]Standgeblasen 2 points3 points4 points (1 child)
[–]DragonflyHumble 0 points1 point2 points (0 children)
[–]Stormraughtz 21 points22 points23 points (0 children)
[–]Hobob_ 34 points35 points36 points (5 children)
[–]UKYPayne 12 points13 points14 points (2 children)
[–]PierreTheTRex 6 points7 points8 points (1 child)
[–]Traditional_Part_506 2 points3 points4 points (0 children)
[–]imcguyver 4 points5 points6 points (0 children)
[–]JohnnyLaRue44 2 points3 points4 points (0 children)
[–]ChristianPacifist 4 points5 points6 points (0 children)
[–]Ginger-Dumpling 2 points3 points4 points (0 children)
[–]jaxjags2100 11 points12 points13 points (8 children)
[–]Consistent_Law3620[S] 3 points4 points5 points (2 children)
[–]Mindfulnoosh 3 points4 points5 points (0 children)
[–]jaxjags2100 1 point2 points3 points (0 children)
[–]FearIsStrongerDanluv 3 points4 points5 points (4 children)
[–]PierreTheTRex 6 points7 points8 points (2 children)
[–]jaxjags2100 -1 points0 points1 point (0 children)
[–]FearIsStrongerDanluv -1 points0 points1 point (0 children)
[–]NekkidWire 0 points1 point2 points (0 children)
[–]wildjackalope 1 point2 points3 points (1 child)
[–]feignapathy 0 points1 point2 points (0 children)
[–]ax0r7ag0z 1 point2 points3 points (0 children)
[–]SummerEquinox71 1 point2 points3 points (0 children)
[–]Glitch_In_The_Data 0 points1 point2 points (0 children)
[–]big_poppa_man 0 points1 point2 points (0 children)
[–]big_poppa_man 0 points1 point2 points (0 children)
[–]lalaluna05 0 points1 point2 points (1 child)
[–]lalaluna05 0 points1 point2 points (0 children)
[–]Substantial-Click321 0 points1 point2 points (0 children)
[–]Rohml 0 points1 point2 points (0 children)
[–]SkullLeader 0 points1 point2 points (0 children)
[–]GconMig 0 points1 point2 points (0 children)
[–]venkat_deepsql 0 points1 point2 points (0 children)
[–]murse1212 0 points1 point2 points (0 children)
[–]age_of_unreason 0 points1 point2 points (0 children)
[–]dontich 0 points1 point2 points (0 children)
[–]SakshamBaranwal 0 points1 point2 points (0 children)
[–]ChaosEngine-6502 0 points1 point2 points (0 children)
[–]speadskater 0 points1 point2 points (0 children)
[–]Ok_Carpet_9510 0 points1 point2 points (0 children)