I recently read somewhere that one of ways of tuning sql query is - If it has too many joins then do one join with fewer tables and cache the results in a temporary table. Then do the rest of the query joining on that table.
My question - How it will improve the performance, as you are joining same numbers of tables. (Only not together) ?
Note :- I agree this is generic statement. I read it recently in some article. I think I will rephrase it. Under what condition storing result into temp table will help ?
Thanks Pravin