exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 153 discussion

Actual exam question from Microsoft's 70-461
Question #: 153
Topic #: 1
[All 70-461 Questions]

SIMULATION -
You have a SQL Server database that contains all of the customer data for your company.
The solution must minimize impact on server resources.
You need to extract a random 1,000 row sample from a table named Customers.
Part of the correct Transact-SQL has been provided in the answer area below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. You can add code within the code that has been provided as well as below it.


Show Suggested Answer Hide Answer
Suggested Answer: Please review the explanation part for this answer.
TABLESAMPLE SYSTEM (1000 ROWS)
Update line 3 to get the following:
SELECT *

FROM Customers -
TABLESAMPLE SYSTEM (1000 ROWS)
The TABLESAMPLE clause limits the number of rows returned from a table in the FROM clause to a sample number orPERCENT of rows.
Syntax: TABLESAMPLE [SYSTEM] (sample_number [ PERCENT | ROWS ] )
References:
https://technet.microsoft.com/en-us/library/ms189108(v=sql.105).aspx

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Currently there are no comments in this discussion, be the first to comment!
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...