Hi,
I am looking to have a transact sql statement going like this
I am trying to concatenate firstname and lastname from the table employee whenever isEmployee = 1
Thanks for helping
- when 1 then
- (
- select firstname + ' '+ lastname
- )
- from tblEmployee
6 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Varun KalidindiPosted Apr 11, 2021, 8:43 AM
when 1
then firstname + ' ' + lastname
else firstname
end as FullName
from Employee
Schleid AlexPosted Apr 8, 2021, 12:48 PM
Kirtesh ShahPosted Apr 7, 2021, 6:17 PM
Pankajkumar PatelPosted Apr 7, 2021, 5:22 PM