Вы можете использовать подзапрос:
select a, b, c, d
from (SELECT a, b, c,
(SELECT d
FROM table2
WHERE ...) as d
FROM table 1
WHERE ... and
a is not null and b is not null and c is not null
) x
where d is not null;
По всей вероятности, вы можете использовать JOIN
:
SELECT a, b, c, x.d
FROM table 1 JOIN
(SELECT d
FROM table2
WHERE ...
) x
WHERE ... and
a is not null and b is not null and c is not null and d is not null;