Good!
I have two tables ( VOIPCLIENTE
, VOIPMAQUINA
) where in VOIPCLIENTE
I have information about the clients ( CLIENTE,DELEGACIÓN...
) and in VOIMPAQUINA
on the machines ( MAQUINA,EMPRESA...
).
These two tables have more fields but only one field relates them, CLIENTE=EMPRESA
.
When I do my sql query, relating those two fields and consulting the MAQUINA
I get repeated machines.
The query:
SELECT maquina.MAQUINADELEG,clientes.CLIENTE,maquina.EMPRESA,maquina.MAQUINA
FROM dbo.VOIPCLIENTE clientes, dbo.VOIPMAQUINA maquina
WHERE maquina.EMPRESA = clientes.CLIENTE order by maquina
The result:
As you can see, 3 repeated rows always come out.