Oracle: How to incorporate NVL to this FULL Join? -


I can how to use Anviel to replace the zero values ​​with zero output of this code? I use these two columns zero so I can perform, plus the

  horse_wins + jockey_wins   

He is always null One of the values ​​is zero, I have read that NVL can help in such situations, but it is difficult to implement. a on

  select race_id, horse_id, horse_wins, jockey_id, jockey_wins, horse_wins + proj_entry combination based on a full jockey_wins tot_h_wins b A.horse_id = b.horse tot_j_wins completely Join c .jockey_id = c.jockey where race_id = 1 and where nvl (jockey_wins, 0);    

  select race_id, horse_id, horse_wins, jockey_id, jockey_wins, NVL ( horse_wins, 0) + NVL (jockey_wins, 0) proj_entry wins a full tot_h_wins b contains join a.horse_id = b.horse full tourist tot_j_wins a.jockey_id = c.jockey where race_id = 1   

You do not use NVL in your where section when you want to display the value. where is to filter the rows back, if you want to display it, then change it, use it in the select section.

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -