Hello! There is a request:
select count(*) as ctr from T1 where my_id in (select my_id from T2 where phrase = 'some_phrase');
in works very slowly. In SQL queries, I am not yet special, but it is clear that the same operations can be performed using join. Explain how to crank?
Update Sorry folks, I didn’t specify - in the second table my_id is not the primary key. in the first table my_id is primary, and in the second it can occur as many times as desired.