I want to join table1 and table2
when table1.B = table2.B then I want Table1.A value in Table2.FK column
and when Table2.B have null value then I want to set -1 in Table2.FK column
I tried multiple query but not getting output
I want to join table1 and table2
when table1.B = table2.B then I want Table1.A value in Table2.FK column
and when Table2.B have null value then I want to set -1 in Table2.FK column
I tried multiple query but not getting output
coalesce,nvl,isnull
depending on your unknown RDBMS