SQL Query takes very long time to complete...Need Urgent Help
Hi All,
Following is the SQL Query taking more than a day to complete. I believe there is something wrong in Query itself
The Query is intend to pull all user records with their only last/max/recent login details along with user who never logged in. The Toad Plan attached below shows very high Cost for each steps involved on this query and i observed that it goes on Merge Join Cartesian product often although this explain plan does not show though.
Can somebody help me to analyze this query to find whether query needs to be re-written if so, what is wrong and what needs to be corrected or any other tuning with hints etc. can be done