sql - How to display data in JOIN, and return null value? -


how join 2 tables , return null value if not available value in table?

i tried join many examples found, i've had trouble getting hoped. thanks!

screenshoot

use left join:

select     va.col_personnel_number,     va.col_clock_date,     va.p10,     va.p20,     vr.name,     vr.unit view_absen va left join view_report vr on va.col_personnel_number=vr.id     , vr.date=va.col_clock_date va.col_personnel_number '%521663%'     , va.col_clock_date between '2016-08-01' , '2016-08-05' 

Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -