sql - How to get all rows from left table in a join statement? -


i have 2 tables. 1 employee_mstr , other employeeleaverequest_mstr.

my data

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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -