Join Two Fields In SQL Server 2008 or 2012

   In SQL user can perform  to join two fields in SQL server 2008 or 2012.use the northwind Database.
using to select Employee Table.

                           select * from Employees


To join Firstname and  Lastname as Name and select Birthdate,Address in the Employees Table. use the concat operator using + operator. set Alies field name use the as function  in the SQL Server.

use the below code

    select FirstName +' '+ LastName as Name,BirthDate,Address from Employees

get the Result as


Comments

Popular posts from this blog

Insecure cookie setting: missing Secure flag

Maximum Stored Procedure Function Trigger or View Nesting Level Exceeded (limit 32) in SQL Server

Display Line Chart Using Chart.js MVC C#