I need help create a function please look at details i have asked : I need a function created (EscapeAmpersand). The function should take 1 varchar(255) parameter. It should return a varchar(255) parameter. The purpose of the function is to take the input, replace ‘&’ with ‘&amp;’ and return the results.

Examples:
Input: ‘my dog & me’ return: ‘my dog &amp; me’
Input: ‘my dog and me’ return: ‘my dog and me’