oracle - ORA-00979: not a GROUP BY expression when sum(col) -
select invoicem.emp_no, employees.emp_name, invoicem.inv_no, sum(invoicem.sum_amt), invoicem.sal_date, invoicem.branch invoicem join employees on invoicem.emp_no = employees.emp_no group invoicem.emp_no,emp_name
help me
you can select field in group statement or aggregation function in oracle:
select invoicem.emp_no,employees.emp_name,sum(invoicem.sum_amt) invoicem join employees on invoicem.emp_no = employees.emp_no group invoicem.emp_no,emp_name
Comments
Post a Comment