Good day Forum.In the app I'm working on I have seen the following delete statement:DELETE from tblFOO where fooKey IN( Select F.fooKey from tblFoo F inner join tblBar B ON F.abc = B.abc inner join tblBaz B2 ON B.abc = B2.abc inner join tblGamma G ON B2.abc = G.abc WHERE (list of conditions))
I thought this would be less optimal than the following:DELETE F FROM tblFoo F inner join tblBar B ON F.abc = B.abcinner join tblBaz B2 ON B.abc = B2.abcinner join tblGamma G ON B2.abc = G.abcWHERE (list of conditions)
So I plugged both into query analyzer and the first one evaluates to 40%, the second to 60%.Why would this be?ThanksGod Bless