I need to mount a query to fetch records in table A, with records filter from table B. Something like:
SELECT * FROM tabelaA tblA WHERE tblA.coluna IN (1,2,3,...)
The values contained in the "IN" filter come from table B and in some cases may be tens or even hundreds.
Questions: Because this is an indefinite number of values, is this the correct form? If not, what is the best approach to the case? When the number of values in the filter is too large, can it cause problems with bank performance?