MySQL Forums
Forum List  »  Newbie

Ntile Function
Posted by: Subhasish Datta
Date: August 20, 2017 11:23PM

HI,

I need to use the ntile function in development.I came to know that MySQL 8.0 have this window function features.So I have installed the MySQL 8.0.1 Developer version,but still not working.Can anybody help me on this?

> Select version()

8.0.1-dmr-log

>select *,NTILE(4) over w as 'ntile4'
from test1 window w as(order by res_rate)

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 'ntile4' from test1 window w as(order by res_rate)' at line 1

Options: ReplyQuote


Subject
Written By
Posted
Ntile Function
August 20, 2017 11:23PM
August 21, 2017 01:36AM


Sorry, only registered users may post in this forum.

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.