MySQL Forums
Forum List  »  General

Re: Order by not working with join
Posted by: Robin vanpersie
Date: October 10, 2020 01:55AM

Group by also doesn't give the last money_amount value
SELECT e.Employee_Id,e.Employee_Name,sum(money_amount), e.Salary-sum(money_amount),s.money_amount from employees e INNER join salary_transaction S where s.Employee_Id = e.Employee_Id and e.Employee_Id = 12 GROUP by Employee_Id ORDER by salary_transaction_id desc 

Options: ReplyQuote


Subject
Written By
Posted
Re: Order by not working with join
October 10, 2020 01:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.