Mit SQL darunter gehts nicht, nur daneben:

select
a.feld1, a.feld2, ...
b.feld1, b.feld2, ...
from Datei a
inner join Datei b
on a.key1=b.key1 and a.key2=b.key2 ...
where a.feldx = ...
and b.feldx = ...

Alternativ auch mit Left join (falls rechts mal keine sätze vorhanden):

select
a.feld1, a.feld2, ...
b.feld1, b.feld2, ...
from Datei a
left join Datei b
on a.key1=b.key1 and a.key2=b.key2 ...
where a.feldx = ...
and (b.feldx is null or b.feldx = ...)