Your comment to the user was:
I have the solution but please tell me first, what have you tried so far? – CodeNewbie 4 hours ago
This comes across as not really being helpful. The "What have you tried" comment have been blocked because they are not considerably constructive. You got around that by also including "I have a solution..." but that doesn't make the comment any better. To me, that is not constructive and doesn't make it seem like you are trying to help the user.
If I was the user and you commented that way, I probably wouldn't have responded to you because you seem to really be passing by and, IMO, being unhelpful.
Yes, we expect that a user include any attempts at solving the problem, there are, however, much better ways to ask that in a comment. You could say something similar to "Thanks for providing the table details, sample data as a visual to get your solution. It would be extremely helpful if you also including any attempts that you made in getting the final result. It could be that you have a minor syntax issue with the FULL JOIN that needs to be adjusted."
We are always going to have users who are willing to answer questions that don't include the attempts that were made. The person who answered the question is a new user who created their account 7 days ago, and yet you basically called them a rep-whore. Yes, you edited your question to remove that but sigh this is a new user who was trying to be helpful. I've seen long time user post answers that are worse than that one, at least they include some sort of explanation. But to answer your final question, there is no official policy on whether or not users should answer questions that don't include attempts.