I have a main table with about 5,000 records, and I need to fetch information from another table with 7,000 records.
But my query is returning +6000:
SELECT principal.id, info.nome, info.endereco, principal.valor
FROM principal
LEFT JOIN info
ON info.usuario = principal.usuario
What can be happening?