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!
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
Post a Comment