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

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -