0
I need to assemble a query to search for records in table A, with table B record filter. 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.
Doubts: Because it is an undefined number of values, this is the correct form? If not, what is the best approach to the case? When the number of values in the filter is too large, it can cause problems with bank performance?
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero
You’re right @bigown. I’m just running so fast that I didn’t have time to test any of the solutions presented. I will do this as soon as possible and I will point out the best solution. Thank you for reminding me!
– Danilo Miguel