This file contains hidden or 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 @tbl TABLE (FullName NVARCHAR(MAX)) | |
| INSERT @tbl(FullName) | |
| VALUES | |
| (N'All-America Research Team: Basic Materials - Best UAC (Chemicals)'), | |
| ('All-America Research Team: Basic Materials - Chemicals'), | |
| ('All-America Fixed-Income Research Team: Client Services - Best Credit-Rating Agencies'), | |
| ('All-America Fixed-Income Research Team'), | |
| ('All-America Research Team'), | |
| ('All-America Trading Team'), |
This file contains hidden or 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
| IF EXISTS (SELECT TOP (1) 1 FROM sys.sysobjects (NOLOCK) WHERE name = 'GetHash' AND xtype IN ('FN')) | |
| DROP FUNCTION GetHash | |
| GO | |
| CREATE FUNCTION GetHash(@Value NVARCHAR(MAX) = NULL) | |
| RETURNS BIGINT | |
| AS | |
| BEGIN |