Kadiri
Kadiri

Reputation: 308

How to cast a boolean value to string by using BIRT

I have a query like that :

select myId, myName, myBoolean from myTable

I hope to get a BIRT table :

if myBoolen is true, print `smart` else print `sorry you're ...`

Upvotes: 0

Views: 831

Answers (1)

juergen d
juergen d

Reputation: 204784

select myId, 
       myName, 
       case when myBoolean = 1 
            then 'smart' 
            else 'sorry ...'  
       end
from myTable

Upvotes: 1

Related Questions