Skip to content
Advertisement

Find overlapping in below data in plsql

I want to check the overlapping such as 199. If its overlap then throw the exception in oracle.

Advertisement

Answer

You can do it with a single query and then handle it via the IF condition.

Query to identify if an exception should be thrown:

If you want all the codes for which exception is raised, then you can use the following query:

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement