In case table be as the row (x=1,y=1)
and f has the rows ((x=1, y=1), (x=1, y=2))
I want to achieve one result row only, since the first condition is met, the second ought to be ommited.
Select * from be join f
ON ( (be.x = f.x AND f.y = b.y) OR (be.x = f.x))