Chapter 4 Flashcards
(5 cards)
Which symbol is used to bring two columns together to form a single column?
a. -
b. %
c. &
d. /
c. &
This is the ampersand, which is a character operator used to bring two columns together to form a single column.
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;
SELECT Count(*) AS as FROM equipment;
You can not use keyword (AS) to name a column.
Which of the following is used to assign an alias?
a. AS
b. ASC
c. AND
d. LIKE
a. AS
To assign an alias, you use the AS keyword.
Which of the following is an arithmetic function?
a. MAX()
b. COUNT()
c. SQRT()
d. SYSDATE()
c. SQRT()
This is an arithmetic function that returns the square root of a number.
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()
d. LTRIM()
This is a character function that removes extra spaces from the left of a value.