Sheldon Livingston
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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!
Thank PortletPaul!
:)
excellent
hope you enjoyed that salami!
excellent
hope you enjoyed that salami!
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.