Solution: You run the following Transact-SQL statement:…

Note: This question is part of a series of questions that present the same scenario. Each question in this series
contains a unique solution. Determine whether the solution meets the stated goals.
Your company has employees in different regions around the world.
You need to create a database table that stores the following employee attendance information:
– Employee ID
– date and time employee checked in to work
– date and time employee checked out of work
Date and time information must be time zone aware and must not store fractional seconds.
Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

Note: This question is part of a series of questions that present the same scenario. Each question in this series
contains a unique solution. Determine whether the solution meets the stated goals.
Your company has employees in different regions around the world.
You need to create a database table that stores the following employee attendance information:
– Employee ID
– date and time employee checked in to work
– date and time employee checked out of work
Date and time information must be time zone aware and must not store fractional seconds.
Solution: You run the following Transact-SQL statement:

Does the solution meet the goal?

A.
Yes

B.
No

Explanation:
ExplanationExplanation/Reference:

datetime2 defines adate 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.
https://msdn.microsoft.com/en-us/library/bb677335.aspx



Leave a Reply 1

Your email address will not be published. Required fields are marked *