NUMBER function [Miscellaneous]

Generates numbers starting at 1 for each successive row in the results of the query. The NUMBER function is primarily intended for use in SELECT lists.

Due to limitations imposed by the NUMBER function (described in the Remarks section below), use the ROW_NUMBER function instead. The ROW_NUMBER function provides the same functionality, but without the limitations of the NUMBER function. See ROW_NUMBER function [Miscellaneous].

 Syntax
 Returns
 Remarks
 See also
 Standards and compatibility
 Example