Skip to Content
author's profile photo Former Member
Former Member

Is there an equivalent for NVL( string1, replace_with ) in Flexible search query?

In oracle we can do SELECT NVL(supplier_city, 'n/a') FROM suppliers;

is it possible with Flexible search Query?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 05, 2015 at 08:48 AM

    Hi Jobin,

    yes it is possible. You could write something like this if you are using Oracle:

    SELECT {Product:PK},nvl({Product:Name},'empty'),nvl({Product:Name[de]},'empty') FROM {Product AS Product} WHERE {Product:Name[de]} is null
    or something like this if using Microsoft SQL Server (because there is no NVL function):

    SELECT {Product:PK},isnull({Product:Name},'empty'),isnull({Product:Name[de]},'empty') FROM {Product AS Product} WHERE {Product:Name[de]} is null

    Calling DB built-in functions depends on the database used.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.