Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

IF() Funktion used in Report

Questions related to nuBuilder Forte Reports and the Report Builder.
Post Reply
marcus
Posts: 20
Joined: Mon Nov 29, 2021 10:16 am

IF() Funktion used in Report

Unread post by marcus »

Hello
i would like to use a IF() Function inside a report, to translate a table made of 1 and 0 into Yes and No. I tried using aliases in the table.
Unfortunatly

Code: Select all

SELECT IF(test_data = 1, "Yes, "No") AS word FROM table_test
is not working while

Code: Select all

SELECT test_data AS word FROM table_test
is working fine, when using a field calles 'word' inside the report.
How could I achieve my goal?
Best regards
marcus
kev1n
nuBuilder Team
Posts: 4292
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 444 times
Contact:

Re: IF() Funktion used in Report

Unread post by kev1n »

I think you will have to create a Procedure. This allows you to use complex queries.
Post Reply