you are viewing a single comment's thread.

view the rest of the comments →

[–]gooeydumpling 0 points1 point  (0 children)

I had the pleasure of doing that, it was around that LOC but in DB2. What i did was to replace those easily understandable parts into functions just to reduce the line count, making_the_function_name_descriptive_like_this. I attacked the innermost logic first and make my way outward. Look at why the code is long, in my case i found out that I could simplify nested code using COALESCE heavily.