Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do I combine two columns lets say firstname and lastname from database using it as name ?
I want to use this fullname into where clause.
Posted

1 solution

Try this:
select * from table1 where firstname + ' ' + lastname = 'peter leow'
 
Share this answer
 
Comments
Ni!E$H_WAGH 15-Apr-14 4:22am    
Thanks Peter Leow

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