CREATE FUNCTION [dbo].[AppendSuffix]
(
@P_Input NVARCHAR(50),
@P_MaxValue int
)
RETURNS NVARCHAR(55)
AS
BEGIN
DECLARE @V_Result NVARCHAR(MAX);
DECLARE @V_ERROR NVARCHAR(MAX);
//i need to put logic here
END;
Example: if I pass in input="value", minvalue = 1, maxvalue = 2
then the resulting output shall be
<ag>lue<ag>