Skip to content
Advertisement

case statement in index creation

How do i use a CASE statement when creating a UNIQUE INDEX?

My statement looks like this

This fails on the following line:

Advertisement

Answer

The CASE should only return a single column, not a tuple (“record”).

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