Trying to compare the 2 strings which should return true if both strings are matching in case otherwise should be return false
In the below example, both strings are not matching due to case.
Is there any way to implement this in SQL Server 2016 Example:
Declare @str1 varchar (100) ='Yes'
Declare @str2 varchar (100) ='YES'
Select
Case When @str1=@str2 then 'same'
Else 'Not same'
END
Expected Result: Not same