Check out example codes for "how to use rank function in sql". It will help you in understanding the concepts better.

Code Example 1

BY LOVE SINGH,
Here, name and id is the column name of the table tbltest.

SELECT
	name,
	RANK () OVER ( 
		ORDER BY id DESC
	) price_rank 
FROM
	tbltest;

Learn ReactJs, React Native from akashmittal.com