Skip to content
Advertisement

Where clause on custom column

What am I missing in the above query.The where clause is not working as expected. I need to apply the where clause on the derived ‘type’ column. How do I acheive that in Oracle.

Thanks in advance

Advertisement

Answer

I suspect that you just want coalesce() — in both the select and where:

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