But your intimidate big conceptual error is not knowing that that SQL is a block structured language with scoping rules. Your mindset is still back in BASIC, FORTRAN or COBOL.
I gotta say I don't understand the use of the word "intimidate" used as an adjective here.
Don Simpson