DB2 - 2 Flashcards

1
Q

What command is used to add more rows/records?

Add
Insert
Both
None of the above

A

Insert

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

Db2 supports binary strings.

TRUE
FALSE

A

TRUE

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

In order to connect tables, you utilize the following:

CONNECT
JOIN
BOTH
NONE

A

JOIN

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

SELECT CustomerName FROM Customers Where Country=’USA’

is a valid formatted WHERE clause
is not valid because WHERE should be replaced with IF
is not because its a VSAM file
is not valid because SELECT should be replaced with FIND

A

is a valid formatted WHERE clause

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

The datetime data types are:

DATE, TIME, and TIMESTAMP.
HOURS, MINUTES and SECONDS
EPOCH,DateTime,TODAY
Hours since January 1, 1970 = %ld\n”, seconds/3600

A

DATE, TIME, and TIMESTAMP.

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

CREATE is not used to set up a table?

TRUE
FALSE

A

FALSE

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

given: store_name VARCHAR(150) pick best answer:

  is a varying character column with a maximum length of 150 
  is a minimum instruction set for a VSAM file 
  is a flat file key set 
  is a binary object module length
A

is a varying character column with a maximum length of 150

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

When did SQL start?

1960’s
1970’s
1980’s
1990’s

A

1970’s

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

Do you need to create a table space before creating a table?

FALSE
TRUE

A

TRUE

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

In order to query data, you use the SELECT statement.

TRUE
FALSE

A

TRUE

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