Date/Time Data Types Flashcards

1
Q

datetime

A

From January 1, 1753 to December 31, 9999 with an accuracy of 3.33 milliseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

datetime2

A

From January 1, 0001 to December 31, 9999 with an accuracy of 100 nanoseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

smalldatetime

A

From January 1, 1900 to June 6, 2079 with an accuracy of 1 minute

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

date

A

Store a date only. From January 1, 0001 to December 31, 9999

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

time

A

Store a time only to an accuracy of 100 nanoseconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

datatimeoffset

A

The same as datetime2 with the addition of a time zone offset

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

timestamp

A

Stores a unique number that gets updated every time a row gets created or modified. The timestamp value is based upon an internal clock and does not correspond to real time. Each table may have only one timestamp variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Format of datetime

A

YYYY-MM-DD HH:MI:SS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

format of date

A

YYYY-MM-DD

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

format of smalldatetime

A

YYYY-MM-DD HH:MI:SS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

format of timestamp

A

a unique number

How well did you know this?
1
Not at all
2
3
4
5
Perfectly