MySQL Forums
Forum List  »  InnoDB

Rank with Total
Posted by: Ra Nala
Date: November 02, 2017 12:38PM

Hi Sir,

I am using InnoDb, 5.7.11 version

I am not able to provide more info on @curRank but my intention is i am able to generate rank and i want to set final rank (i.e. 3) to my other column(emp_count).

Could you please help me how can i set final rank to emp_count column. Kindly help me.



Emp_id Emp_Sal Emp_rank Emp_count
------- ------- ------- -------
1 100 1 3
2 200 2 3
3 300 3 3


Thanks for your support

Options: Reply• Quote


Subject
Views
Written By
Posted
Rank with Total
1872
November 02, 2017 12:38PM
878
November 02, 2017 01:12PM
822
November 04, 2017 11:44AM
701
November 04, 2017 12:07PM
891
November 04, 2017 12:15PM
824
November 04, 2017 05:36PM
830
November 05, 2017 11:49AM
801
November 05, 2017 03:43PM
783
November 06, 2017 12:01PM
769
November 06, 2017 12:51PM


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.