heavycareer

Pl Sql Developer 7.1 Serial Number

I know we can generate row_number in select statement. But row_number starts from 1, I need to generate from 2 and onwards.

example

Current I am using below select statement for generate regular row number.

How can modify above select statement and start from 2?

James123James123

2 Answers

to add: ROW_NUMBER() has an unusual syntax, and can be confusing with the various OVER and PARTITION BY clauses, but when all is said and done it is still just a function with a numeric return value, and that return value can be manipulated in the same way as any other number.

AakashMAakashM

I don't know much about SQL Server but either one of these will work:

OR

YahiaYahia

Not the answer you're looking for? Browse other questions tagged sqlsql-servertsql or ask your own question.