You need to store the departure and arrival dates and times of flights along with time zone information

You develop a database for a travel application. You need to design tables and other database
objects.
You create the Airline_Schedules table.
You need to store the departure and arrival dates and times of flights along with time zone
information.
What should you do?

You develop a database for a travel application. You need to design tables and other database
objects.
You create the Airline_Schedules table.
You need to store the departure and arrival dates and times of flights along with time zone
information.
What should you do?

A.
Use the CAST function.

B.
Use the DATE data type.

C.
Use the FORMAT function.

D.
Use an appropriate collation.

E.
Use a user-defined table type.

F.
Use the VARBINARY data type.

G.
Use the DATETIME data type.

H.
Use the DATETIME2 data type.

I.
Use the DATETIMEOFFSET data type.

J.
Use the TODATETIMEOFFSET function.

Explanation:
http://msdn.microsoft.com/en-us/library/ff848733.aspx
http://msdn.microsoft.com/en-us/library/bb630289.aspx



Leave a Reply 6

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


Bob

Bob

I.
datetimeoffset Defines a date that is combined with a time of a day that has time zone awareness and is based on a 24-hour clock

salim

salim

I.
Use the DATETIMEOFFSET data type.YYYY-MM-DD hh:mm:ss[.nnnnnnn] [{+|-}hh:mm]

jean

jean

todatetimeoffset

Return Type:
datetimeoffset. The fractional precision is the same as the datetime argument.

jean

jean

CAST
SELECT CAST(14.85 AS int);
Result: 14 (result is truncated)

SELECT CAST(14.85 AS float);
Result: 14.85 (result is not truncated)

SELECT CAST(15.6 AS varchar);
Result: ‘15.6’

SELECT CAST(15.6 AS varchar(4));
Result: ‘15.6’

SELECT CAST(‘15.6’ AS float);
Result: 15.6

SELECT CAST(‘2014-05-02’ AS datetime);
Result: ‘2014-05-02 00:00:00.000’

Mohamed ALi Ben Amor

Mohamed ALi Ben Amor

I