Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi friends,

I am just trying to merge two datacolumns to one in gridview,

for example ,

Table (personal info)

FirstName| LastName| mobno| phoneno| emailID

aarohi| verma| 1243433| 3434434| aarohi_verma@yahoo.in


i want full name "aarohi verma" in gridview .

so I have to merge FirstName and LastName columns of table personal info.

how to do this?
Posted

1 solution

Use this query:

SELECT FirstName + ' ' + LastName AS Fullname FROM PersonalInfo

Or create a view with this query.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900