sql - How to get all rows from left table in a join statement? -
i have 2 tables. 1 employee_mstr
, other employeeleaverequest_mstr
.
please me achieve this.
thanks in advance.
select tab1.emp_cd, tab1.emp_name, sum(tab2.num_dy) employee_mstr tab1, "2nd table records" tab2 tab1.emp_cd = tab2.emp_cd group tab1.emp_cd, tab1.emp_name;
should work, set correct table name 2nd table.
Comments
Post a Comment