Skip to Content

when can we get null values in web i report object ?

Hi All,

When I ran a query to generate the report ,report would be generated with null values in one column .

when can we get null values in web i report object ?

Are getting null values is because of any defect ?

Kindly let me know.

Thanks

Ram

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2016 at 11:01 AM

    You can get nulls in a variety of ways.

    1/ The column itself contains NULL

    2/ There is a case expression that evaluates to NULL for a given row

    3/ There is an outer join that does not have values on "both sides" of the join, which would return NULL for the dataless side.

    Those are the three most obvious things that I can think of.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Ramanaidu Kolasani

      If you don't have an ELSE at the end or you have a THEN NULL or ELSE NULL then you can get a null returned:

      CASE WHEN table.country = 'United Kingdom' THEN 'UK' WHEN 'India' THEN 'IN' WHEN 'Hong Kong' THEN NULL ELSE 'Other' END

      This will return null if table.country='Hong Kong'

  • Posted on Sep 19, 2016 at 09:29 AM

    does the database holds values for that col?

    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.