Reply to Re: Are embedded views (Views within views...) evil and if so why?
Posted by --CELKO-- on 04/04/06 06:04
>> Unfortunately, the optimizer won't push the highly selective predicate down the view's definition, so the query will run very slowly. However, if you rewrite the query without using the view, the optimizer will choose a better plan using the index on last_name. << |
Copyright © 2005-2006 Powered by Custom PHP Programming