Hello, I'm new to SQL and am having a question. As in the example below, I wanted to get a description of the code in the 'a' table from a table 'b'. But the number of rows in table 'a' when I do this increases significantly.
select a.banana, a.caju, b.descgenero
from vegetais b
INNER JOIN desc b
on (a.cod = b.cod and a.est = b.est and a.colheita = b.colheita)
I have seen cases using INNER JOIN where table 'a' gets smaller, if I do not have the corresponding code in table 'b', but I do not understand why the number of rows in table 'a' may have increased. If anyone can help me, I'll be grateful.