MySQL Forums
Forum List  »  MySQL Workbench

Re: Partition by Clause not working
Posted by: Peter Brawley
Date: October 12, 2020 09:41AM

Sorry, private work ain't free, IAC I neglected to say that with multiple Select expressions you should use the window clause ...

select 
  row_number() over w as rownum,
  fullname,email,completionstate
from n
window w as (
  partition by email, fullname 
  order by completionstate
); 

Options: ReplyQuote


Subject
Views
Written By
Posted
2738
October 08, 2020 08:59PM
859
October 09, 2020 08:22AM
699
October 09, 2020 11:01AM
697
October 09, 2020 11:18AM
607
October 12, 2020 12:20AM
Re: Partition by Clause not working
636
October 12, 2020 09:41AM
734
October 12, 2020 06:23PM
677
October 12, 2020 08:04PM


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.