TABLESAMPLE returns wrong number of rows?

后端 未结 4 1521
无人共我
无人共我 2020-12-17 20:18

I\'ve just discovered the TABLESAMPLE clause but surprisingly it doesn\'t return the number of rows i\'ve specified.

The table that i\'ve used has ~14M rows and i wa

4条回答
  •  旧巷少年郎
    2020-12-17 20:58

    From the documentation.

    The actual number of rows that are returned can vary significantly. If you specify a small number, such as 5, you might not receive results in the sample.

    http://msdn.microsoft.com/en-us/library/ms189108(v=sql.90).aspx

提交回复
热议问题