MySQL Forums
Forum List  »  General

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

Last_value also doesn't give me the desired result

SELECT e.Employee_Id,e.Employee_Name,sum(money_amount),
e.Salary-sum(money_amount),
LAST_value( money_amount)   from employees e 
INNER join salary_transaction S 
where s.Employee_Id = e.Employee_Id 
and e.Employee_Id = 12

Options: ReplyQuote


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


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.