I have two tables with the same field and I need to make a SELECT
with two conditions, I am trying this code but it is listing only the result of the first table ( entrada
), not the second table ( saida
):
SELECT * FROM entrada, saida WHERE entrada.idUsuario = '1' OR saida.idUsuario = '1';