Quantcast
Viewing all articles
Browse latest Browse all 12198

Beware of less rows than your NTILE ( integer_expression)

Beware that if the number of rows in an NTILE partition is less than the integer_expression for the number of partitions, the rows will be numbered from 1 to the number of rows. This is probably not what you are expecting.For example, if you request NTILE (100) i.e. Percentile on a set of 90 rows, the results will range from 1-90, not 1-100.

Viewing all articles
Browse latest Browse all 12198

Trending Articles