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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -