Skip to content
Advertisement

call value from another table when the value is not null

I want to get the value from table stage_cdl if it has value and from tale stage_vdl if it has value.

Before this, I used this code (below) but I only receive the array until value 5 not include the table stage_vdl_id.

The output:

invoice_stud table

Figure 1

stud_stage_cdl table

Figure 2

stud_stage_vdl table

Figure 3

license_cdl_module table

Figure 4

license_vdl_module table

Figure 5

Here what I’ve done so far, there is no error but no value output. I’m very new with sql. As you can see my code, I’m trying to get the value from the lcm and lvm.

Advertisement

Answer

I have solved this by making them as an array.

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