This is something that I've noticed is especially prevalent on SQL-related questions but applies to any kind of code question. I'll see a new user, and their question illustrates that they're new to the subject. They'll ask a question that has perhaps several valid answers, and most of the answers they get are just SQL, nothing else, not even a comment. This seems a bit much when the answer contains code which would be several levels up from what the new user is familiar with.
Would it not be better, if a user is clearly new to the subject, not to bombard them with the more complex syntax without explanation? Otherwise I feel we're just encouraging people to copy-and-paste code without understanding it.
Or is it better to treat the audience as wider than just the person asking the question, and assume that others will learn more from the answer?
Feel free to point me at the duplicate I'm sure this question has, but I couldn't find one...