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

Outer join over 2 different datasources

Hi I hope someone can help....I have a report (Crystal 2008) where I am combining fields from one Oracle and one Sybase datasource, using a left outer join. This works fine until I add a condition on a column on the right-hand table as it seems to turn the join into an inner-join. So I tried adding an OR IsNull(condition field) to the query, but this makes absolutley no difference - still only getting those records where there exists a record in the right table after the condition is applied.

There MUST be a way to do this...

Thanks in advance,

Lee

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Sep 19, 2008 at 02:02 PM

    Hi Lee,

    If the Isnull function is used in a formula (or Record selection formula or Group selection formula) with such syntax:

    {database.field} = anyvalue or Isnull({database.field})

    then the records are incorrect.

    NULL values are undefined values. NULL values first need to be defined.

    (Record/Group selection formulas and standard formulas should be used with that in mind.)

    The IsNull function must always be used first in a formula:

    IsNull({database.field}) or {database.field} = anyvalue

    Regards,

    Alpana

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks for the advice - however, this expression in my Record Select still means I only get those records where ValueDate > CurrentDate

      (IsNull({CASHFLOW_VIEW.ValueDate}) OR {CASHFLOW_VIEW.ValueDate} >= CurrentDate)

      What am I doing wrong?

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.