Skip to content
Advertisement

Tag: select

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 stud_stage_cdl table stud_stage_vdl table license_cdl_module table license_vdl_module table Here what I’ve done so far,

Select based on multiple ID’s in the same column

I have two SQL tables already built (not by me) : One table that has all the ingredients with ID’s assigned to them : and the second table that has finished products that have reference to ingredientID in the ProductIngredients column but no the product name and they are built like this : If they don’t have any reference then

Advertisement