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
using to select Employee Table.
select * from Employees
use the below code
select FirstName +' '+ LastName as Name,BirthDate,Address from Employees
get the Result as
Comments
Post a Comment
Thank You for your Comment