I have a complex query which joins more than 7 tables. After the joins, I would like to filter the result of my query .
Here is something that I observed.
When I do a where clause
where X.Name != 'xxx'
and XY.Product != 1
I get the filtered results , but all the null values for the X.Name and XY.Product also disappear from my result. I would like to retain the null values.
I also tried :
and X.Name != 'xxx'
and XY.Product != 1
I removed the where clause totally and put in an and , but I dont see the filtering at all by this approach.
Is there a way I can filter my results without losing the null values ??

AND NOT X.Name == 'xxx'.INNER JOINafterOUTER JOIN. This could negateOUTER JOINeffect