create table tab1(horse number, stock number); insert into tab1 values(100,4); insert into tab1 values(101,5); create table tab2(stock number, slip number); insert into tab2 values(4, 1); insert into tab2 values(4, 5); insert into tab2 values(4, 8); insert into tab2 values(5, 1); insert into tab2 values(5, 5); insert into tab2 values(5, 6); insert into tab2 values(5, 7); commit;
returns error: "rnk" invalid identifier....
select t1.horse, t2.stock, t2.slip, rank () over (partition by horse, slip order by slip desc) rnk from tab1 t1 join tab2 t2 on t1.stock = t2.stock where rnk = 1
Gain unlimited access to on-demand training courses with an Experts Exchange subscription.Get Access
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
When asked, what has been your best career decision?
Deciding to stick with EE.
Being involved with EE helped me to grow personally and professionally.
We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE
Connect with Certified Experts to gain insight and support on specific technology challenges including: