The first phrase is literally
Thank you for the tip, this is exactly what I was looking for.
The second phrase contains a code fragment that does not answer the original question (which was about a query to display failed jobs). It provides an alternative way to calculate a variable, but in itself has no relevance to the question.
To me it looks very much like a "thank you" comment. Taken as a whole it does not even attempt to answer the original question. The suggested code piece could have been an edit to the other answer, to which the author supposedly refers.