Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

sql row number in result set

SELECT 
    ROW_NUMBER() OVER (
            ORDER BY salary
    ) row_num, 
    first_name, 
    last_name, 
    salary
FROM
    employees;
Code language: SQL (Structured Query Language) (sql)
Source by www.sqltutorial.org #
 
PREVIOUS NEXT
Tagged: #sql #row #number #result #set
ADD COMMENT
Topic
Name
4+2 =