exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 113 discussion

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

You need to create a table named Sales that meets the following requirements:

Which Transact-SQL statement should you run?

A.

B.

C.

D.

E.

Show Suggested Answer Hide Answer
Suggested Answer: D
datetime2 Defines a date that is combined with a time of day that is based on 24-hour clock. datetime2 can be considered as an extension of the existing datetime type that has a larger date range, a larger default fractional precision, and optional user-specified precision.
Incorrect Answers:
B, C, E: NEWQSEQUENTIALID creates a GUID that is greater than any GUID previously generated by this function on a specified computer since Windows was started. A GUID uses more space then IDENTITY value.
References:
https://docs.microsoft.com/en-us/sql/t-sql/data-types/datetime2-transact-sql https://docs.microsoft.com/en-us/sql/t-sql/functions/newsequentialid-transact-sql

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
MML
Highly Voted 5 years, 1 month ago
Correct is D
upvoted 5 times
Anette
5 years ago
correct, its int for 4 bytes (least amount of storage) and it has the primary key doing the identifying uniquely the row data.
upvoted 2 times
...
...
eduardogtc
Most Recent 4 years, 9 months ago
The correct is D. Besides the fact Datetime2 is standard, you have to set primary key to ensure uniqueness: Text from (https://docs.microsoft.com/en-us/sql/t-sql/statements/create-table-transact-sql-identity-property?view=sql-server-ver15): Uniqueness of the value - Uniqueness must be enforced by using a PRIMARY KEY or UNIQUE constraint or UNIQUE index
upvoted 3 times
...
CristianCruz
4 years, 11 months ago
E UNIQUEIdentify
upvoted 1 times
...
mattia_88
5 years, 8 months ago
datetime2 is STANDARD SQL
upvoted 2 times
...
Bartek
5 years, 9 months ago
I think there should be answer A better : https://www.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.esqlc.doc/ids_esqlc_0190.htm
upvoted 1 times
Bartek
5 years, 8 months ago
I was wrong https://database.guide/datetime-vs-datetime2-in-sql-server-whats-the-difference/
upvoted 3 times
...
imran
5 years, 8 months ago
THERE IS NO PRIMARY KEY DEFINED WHICH UNIQUELY IDENTIFY THE COLUMN
upvoted 1 times
Billybob0604
4 years, 5 months ago
identity property does that
upvoted 1 times
...
...
...
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 ...