Subject Re: [firebird-support] Re: case when .. else ..end
Author Helen Borrie
At 11:56 AM 20/10/2005 +0000, you wrote:
>I'm using Firebird-, and client IBExpert.
>According to, i have
>implemented following case query(here part of the query),
>But same error msg is giving and not executing.
> when MP.RoleID = -1 then 'All Users'
> when MP.RoleID = -2 then 'Superuser'
> when MP.RoleID = -3 then 'Unauthenticated Users'
> else R.RoleName
>I can't see any problem, but why not executing, any comment???

Refer to Example B at your URL and try this instead:

when (MP.RoleID = -1) then 'All Users'
when (MP.RoleID = -2) then 'Superuser'
when (MP.RoleID = -3) then 'Unauthenticated Users'
else R(.RoleName