select NVL(B.SEQID, A.LVL5_ID) LVL6_ID, NVL(B.NAME, ' ') LVL6_NAME, A.LVL5_ID
FROM LVL5 A, ABC B WHERE A.LVL5_ID = B.LVL7
The above query is what defines a view in my system. Here I would like to know why the NVL was used.
The thing is that SEQID is a primary key column and cannot be null. so is there any need for NVL here?
can B.SEQID be null if no records satisfying the where clause can be found?(i know this doesnt make sense but I just had to ask)