I have 2 Tables ex
Create Table Test_A (Col1 VarChar2(256), Col2 VarChar2(256))
Insert Into Test_A Values('A','B');
Insert Into Test_A Values('C','D');
Create Table Test_B (Col3 VarChar2(256))
Insert Into Test_B Values('E')
Select * From Test_A Where Col2 IN(Select Col2 From test_B)
Now my table Test_B doesnot have Col2 but still the above query is executed and returns all records of Test_A table