Forum

Handling nulls afte...
 
Notifications
Clear all

Handling nulls after joining

3 Posts
2 Users
0 Reactions
60 Views
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Hello,

i have 2 tables.

After joining (left join) i have:

Screenshot_19.png

 

so as you can see i have a lot of nulls - and it is ok for me because in my main table for columns:

OSType

OSVersion

OSDistro

i have already values. 

So for each column i have to go and add if statement:

if [t_VolumeSelectionsSourceMatchProtCust.osdistro] = null then [OSDistro] else [t_VolumeSelectionsSourceMatchProtCust.osdistro]

- adding 4 or 5 columns is time consuming and i belive there is option to skip this or faster this somehow. 

Can anybody help?

Jacek

 
Posted : 27/10/2020 6:18 am
(@mynda)
Posts: 4761
Member Admin
 

Hi Jacek,

Have you tried merging the columns? Nulls should be replaced with the values.

Mynda

 
Posted : 27/10/2020 6:47 pm
(@jaryszek)
Posts: 177
Reputable Member
Topic starter
 

Thank you Mynda i will check

 
Posted : 28/10/2020 4:30 am
Share: