MySQL Forums
Forum List  »  MySQL Workbench

Re: Partition by Clause not working
Posted by: Vignesh Kumar
Date: October 12, 2020 06:23PM

Hi Peter,

Same query

select
ROW_NUMBER() OVER w as rownum,
email,fullname,completionstate
from new_completion_view
Window w as (
partition by email, fullname
order by completionstate
);

Getting the below error

Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'w as rownum, email, fullname, completionstate from new_completion_view Window' at line 2

Options: ReplyQuote


Subject
Views
Written By
Posted
2723
October 08, 2020 08:59PM
857
October 09, 2020 08:22AM
699
October 09, 2020 11:01AM
695
October 09, 2020 11:18AM
607
October 12, 2020 12:20AM
634
October 12, 2020 09:41AM
Re: Partition by Clause not working
730
October 12, 2020 06:23PM
675
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.