exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 118 discussion

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

You have a database named DB1 that contains a temporal table named Sales.Customers.
You need to create a query that returns the credit limit that was available to each customer in DB1 at the beginning of 2017.
Which query should you execute?

A.

B.

C.

D.

Show Suggested Answer Hide Answer
Suggested Answer: C
AS OF: Returns a table with a rows containing the values that were actual (current) at the specified point in time in the past.
Incorrect Answers:
A, B: CONTAINED IN has two parameters: CONTAINED IN (<start_date_time> , <end_date_time>)
References:
https://docs.microsoft.com/en-us/sql/relational-databases/tables/querying-data-in-a-system-versioned-temporal-table

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
Andybug
Highly Voted 5 years, 3 months ago
sorry C is correct i didn't look at it properly
upvoted 7 times
...
Vermonster
Most Recent 4 years, 4 months ago
AS OF works. CONTAINED IN also operates only against the history table so if transaction is still the most current, you won't get it (BETWEEN would be better if we had a range).
upvoted 1 times
Vermonster
4 years, 4 months ago
Implicit conversion happens on 2017-01-01 to turn that into datetime
upvoted 1 times
...
...
SimSql
4 years, 4 months ago
I think C is correct.
upvoted 1 times
...
BabyBee
4 years, 5 months ago
None of them work. CONTAINED needs two parameters; AS OF needs exact datetime value not just date part, it won't run. Tested. And ALL is not what we are looking for.
upvoted 1 times
kimalto452
4 years, 4 months ago
answer is correct
upvoted 1 times
...
...
Andybug
5 years, 3 months ago
there as to be a specified year c is wrong
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago