Why can the optimizer choose a bad query plan and how do statistics help? | LetsGit.IT