Assuming I have these two tables with the following records
cliente
id nombre
1 c1
2 c2
3 c3
4 c4
5 c5
tabla2
id_cli dato
1 d1
3 d3
10 d10
If this selection is made it shows us the clients that are in table2
SELECT tabla2.*, cliente.nombre
FROM cliente,tabla2
WHERE id = id_cli
id_cli dato nombre
1 d1 c1
3 d3 c3
but what I'm looking for is to show me the next result
id_cli dato nombre
1 d1 c1
3 d3 c3
10 d10
Let me see table2 and if the id matches the name field
Is this possible in sql? or I have to do it by code