Created
October 31, 2014 06:45
-
-
Save jsauve/7468fd3046a70665539a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DECLARE @atdString NVARCHAR(50), @ariString NVARCHAR(50); | |
SET @atdString = 'BF Goodrich'; -- the brand name as it exists in ATD | |
SET @ariString = 'BFGoodrich®'; -- the brand name as it exists in ARI | |
SELECT 1 | |
WHERE | |
( | |
REPLACE(LOWER(@atdString), ' ', '') = REPLACE(LOWER(@ariString), ' ', '') OR | |
REPLACE(LOWER(@ariString), ' ', '') LIKE CONCAT(REPLACE(LOWER(@atdString), ' ', ''),'®') | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This evaluates to true (1).