Chapter 4 Flashcards

1
Q

Which symbol is used to bring two columns together to form a single column?

a. -
b. %
c. &
d. /

A

c. &

This is the ampersand, which is a character operator used to bring two columns together to form a single column.

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

Which of the following SQL statements will not work?

a. SELECT Count() AS as FROM equipment;
b. SELECT count(
) as tottall FROM storage;
c. SELECT COUNT() as Total FROM Materials;
d. select Count(
) as totalpeople from people;

A

SELECT Count(*) AS as FROM equipment;

You can not use keyword (AS) to name a column.

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

Which of the following is used to assign an alias?

a. AS
b. ASC
c. AND
d. LIKE

A

a. AS

To assign an alias, you use the AS keyword.

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

Which of the following is an arithmetic function?

a. MAX()
b. COUNT()
c. SQRT()
d. SYSDATE()

A

c. SQRT()

This is an arithmetic function that returns the square root of a number.

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

Which of the following should you use to remove extra spaces from the left of a value?

a. RTRIM()
b. TO_CHAR()
c. Brackets
d. LTRIM()

A

d. LTRIM()

This is a character function that removes extra spaces from the left of a value.

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