This example uses the NumberOfRows argument. With this argument, the function orders the rows as specified in the ORDER BY clause, and then converts exactly number_of_rows rows into columns. The column names are generic: value_0, value_1, and so on. If there are more than number_of_rows rows in a partition, the function ignores the extra rows. If there are fewer than number_of_rows rows in a partition, the function adds NULL values so that there are a total of number_of_rows columns.