Why Has an Index Broken My Query?

Sometimes Oracle can give unexpected exceptions. This often happens when working with dates stored as strings. In this video, Chris investigates why adding an index to a varchar storing dates could cause a query to fail. He explains why this happens. Then he shows workaround to avoid this. You can download the scripts in this video from LiveSQL at: https://livesql.oracle.com/apex/livesql/file/content_CVN82PZQWQSUFYMOVKG0VI19T.html ============================ The Magic of SQL with Chris Saxon Copyright © 2015 Oracle and/or its affiliates. Oracle is a registered trademark of Oracle and/or its affiliates. All rights reserved. Other names may be registered trademarks of their respective owners. Oracle disclaims any warranties or representations as to the accuracy or completeness of this recording, demonstration, and/or written materials (the “Materials”). The Materials are provided “as is” without any warranty of any kind, either express or implied, including without limitation warranties or merchantability, fitness for a particular purpose, and non-infringement.