Hi All,
My tblclient has both individual clients and company clients data
It has the following data
Pkclient
FirstName
LastName
CompanyName
Etc …
I want to select the companyName if there is one, otherwise select FirstName and LastName.
Here is my Pseudocode: If CompanyName is not null then select companyName
Else select (Firstname & ‘ ‘ & LastName)
But I don’t know how to write the IF statement in SQL
Any help would be greatly appreciated
Azita
My tblclient has both individual clients and company clients data
It has the following data
Pkclient
FirstName
LastName
CompanyName
Etc …
I want to select the companyName if there is one, otherwise select FirstName and LastName.
Here is my Pseudocode: If CompanyName is not null then select companyName
Else select (Firstname & ‘ ‘ & LastName)
But I don’t know how to write the IF statement in SQL
Any help would be greatly appreciated
Azita