An Administrator needs to create a sample of the table LINEITEM. The sample should not be repeatable and the sampling function should take the data by blocks of rows.
What select command will generate a sample of 20% of the table?
This command will generate a sample of 20% of the table by using the SYSTEM (or BLOCK) sampling method, which selects each block of rows with a probability of 20/100. This method is suitable for taking data by blocks of rows, as the question requires. According to theSnowflake documentation, ''SYSTEM (or BLOCK): Includes each block of rows with a probability of p/100. Similar to flipping a weighted coin for each block of rows. This method does not support fixed-size sampling.'' The other options are either incorrect or do not meet the requirements of the question. Option A uses the BERNOULLI (or ROW) sampling method, which selects each row with a probability of 20/100, but does not take data by blocks of rows. Option C uses the BLOCK sampling method, but specifies a fixed number of rows (20) instead of a percentage (20%). Option D uses the SYSTEM sampling method, but specifies a seed value (1), which makes the sampling repeatable, contrary to the question.
Limited Time Offer
25%
Off
Leana
15 days agoBarbra
21 days agoShaniqua
26 days agoJaime
1 month agoJustine
1 month agoRonald
1 month agoAnnabelle
2 months agoIlene
2 months agoJanella
2 months agoRolande
2 months agoJanna
2 months agoLilli
2 months agoAlyce
3 months agoLenny
3 months agoMargart
4 months agoTrinidad
4 months agoNan
4 months agoChantell
4 months agoAliza
4 months ago