Can someone help me with this.I am trying to use CASE statement and I get the following error Line 4: Incorrect syntax near '='.
[Select EmpUsr.*,
CASE
When usrkey = adminusrkey then
'AdminName' = fname +' '+Lname
Else when usrkey <> adminusrkey then
'ClientName' = fname +' '+lname
End
From EmpUsr]
[Select EmpUsr.*,
CASE
When usrkey = adminusrkey then
'AdminName' = fname +' '+Lname
Else when usrkey <> adminusrkey then
'ClientName' = fname +' '+lname
End
From EmpUsr]