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 [Miscellaneous], instead. The ROW_NUMBER function provides the same functionality, but without the limitations of the NUMBER function.

 Syntax
 Returns
 Remarks
 Standards and compatibility
 Example