It turns out that after using a SELECT * FROM + several JOINS such that ...
SELECT * FROM EMBARCACION RIGHT JOIN
(SELECT * FROM EMBARCACION LEFT JOIN POSICION
ON EMBARCACION.matricula=POSICION.matricula JOIN VENTA
ON VENTA.matricula=EMBARCACION.matricula JOIN SOCIO
ON SOCIO.IDSocio=VENTA.IDSocio
WHERE POSICION.IDposicion is not null AND POSICION.fechaFinal is null
) WHERE POSICION.IDPosicion is null
As a result I get a table.
To the original BOARD table I want to subtract the table I have obtained with the SELECT but in the same sentence and without having to create a physical table.
Any ideas on how to do it?