MySQL Forums
Forum List  »  Newbie

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


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()


>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

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

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.