- Create FUNCTION [dbo].[GetFullNameWithNoSpace]
- (
- @First_Name varchar(50),
- @Middle_Name varchar(50),
- @Last_Name varchar(50)
- )
- RETURNS Varchar(152)
- AS
- begin
- Declare @outTime Varchar(152);
- SELECT @outTime= REPLACE(RTRIM(COALESCE(@First_Name + ' ', '') +
- COALESCE(@Middle_Name + ' ', '') +
- COALESCE(@Last_Name+ ' ', '') ), ' ', ' ')
- RETURN @outTime
- END
- GO
- SELECT dbo.[GetFullNameWithNoSpace]('ashish','','Srivastava')
Tuesday 29 November 2016
First Name + Middle Name + Last Name Merge With One Extra Space
Subscribe to:
Post Comments (Atom)
Upload valid file in C#
protected bool CheckFileExtandLength(HttpPostedFile HtmlDocFile) { try { Dictionary<string, byte[]>...
-
CREATE TAblE #temp ( T_Name VARCHAR(50), T_Times BIGINT ) INSERT INTO #temp(T_Name,T_Times) VALUES ('ASHISH',4) IN...
-
Step 1: Open URL: https://portal.azure.com/#home Step2 : Click Manage Azure Active Director Step3: Click Enterprise Application Step 4: Ne...
-
Injection Injection flaws, such as SQL injection, LDAP injection, and CRLF injection, occur when an attacker sends untrusted data to an ...
No comments:
Post a Comment