Re: performance of IN clause

2018-10-17 Thread Silvio Fiorito
; Subject: performance of IN clause Is there a significant differrence in how a IN clause performs when compared to a JOIN? Let's say I have 2 tables, A and B/ B has 50million rows and A has 1 million Will this query? Select * from A where join_key in (Select join_key from B) perform much worse th

performance of IN clause

2018-10-17 Thread Jayesh Lalwani
Is there a significant differrence in how a IN clause performs when compared to a JOIN? Let's say I have 2 tables, A and B/ B has 50million rows and A has 1 million Will this query? *Select * from A where join_key in (Select join_key from B)* *perform much worse than* * Select * from A* *INNER