Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

IF in SQL SELECT statements

Hi,

Just new to Qlik. I need to put in some conditional selection in my SQL, such as

SQL SELECT IF(field_a = ' ', field_b, field_a) AS myfield

     FROM mytable

However, no matter how I fiddle with it, the script throws an error. What am I doing wrong?

Steven

1 Reply
Not applicable
Author

I think I figuredit out myself. I was working on the assumption that I needed to use Qlik syntax or standard SQL syntax, when in fact it turns out that one uses the native syntax of the database source that is being queried!