Connor and Chris will both be at AI World from October 12 to October 17 , the premier Oracle conference of 2025. If you're in Vegas, please come say Hi or pop into our sessions
Thanks for the question, Md.Arif.
Asked: May 04, 2016 - 8:51 am UTC
Last updated: July 25, 2025 - 12:58 pm UTC
Version: 11g
Viewed 1000+ times
create table t ( name varchar2(1), num number ); insert into t values ('A', 1); insert into t values ('B', 2); insert into t values ('C', 3); insert into t values ('D', 4); insert into t values ('E', 5); update t set num = 0.5 where name = 'C'; update t set num = ( select n from ( select name, row_number() over (order by num) n from t ) s where s.name = t.name ); select * from t order by num; N NUM - ---------- C 1 A 2 B 3 D 4 E 5
Md.Arif Hossain, May 04, 2016 - 9:49 am UTC
Navneel Premlal Maharaj, July 24, 2025 - 2:22 pm UTC
Analytic SQL got you confused? Check out Connor McDonald's complete video course.