• Covert Iif statement into SQL

    Author
    Topic
    #494149

    Hi,

    I am struggling with case when for SQL in a view.

    I have the following in a access query:

    PMergeName: IIf([PPLastname]=[Lastname],[Title] & ” & ” & [PPTitle] & ” ” & [Lastname],[Title] & ” ” & [Lastname] & IIf(IsNull([PPLastname]),””,” & ” & [PPTitle] & ” ” & [PPLastname]))

    How do I get this to a SQL Case when statement?

    Reply To: Covert Iif statement into SQL

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: