• As others have pointed out, if you're working on this query, you need to understand how it works. After all, you're going to be the one supporting it. I doubt that "someone on the internet told me to do it like this" will fly with your boss is you "fix it" and it suddenly stops working.