Link to home
Start Free TrialLog in
Avatar of Sheldon Livingston
Sheldon LivingstonFlag for United States of America

asked on

SQL query showing NULL

I have a query that shows many fields/columns.

There are 6 LEFT OUTER JOINS in this query.

Everything displays and calculates perfect... except for one field.  I have one field in one table that just shows NULL.

It is the only field in that table that I am trying to show.

What would be preventing the field from displaying?
Avatar of Kyle Abrahams, PMP
Kyle Abrahams, PMP
Flag of United States of America image

It's either the join for that table, the parent table(s), or there's no information for that column.

EG

A ->  B -> C -> D

If C is null D will always be null.

You have info in C then check D's join to ensure the join is proper.
ASKER CERTIFIED SOLUTION
Avatar of PortletPaul
PortletPaul
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Hello,

Whenever we have joins the column from other table will have values based on joining column,
so it the joining column has matching data then the data which is there in the relevant column would be displayed otherwise NULL will come.
Avatar of Sheldon Livingston

ASKER

This is what I did... I reduced the query to just show the column I wanted and then built upon it until I came across the issue.

Thank PortletPaul!
:)
excellent
hope you enjoyed that salami!