Filters
Question type

Study Flashcards

When joining three or more tables,you need to specify a join condition for one pair of tables.

A) True
B) False

Correct Answer

verifed

verified

A(n)____________________ is performed when data is retrieved from more than one table at a time.

Correct Answer

verifed

verified

SQL is considered difficult to learn;its command set has a vocabulary of more than 300 words.

A) True
B) False

Correct Answer

verifed

verified

A common practice is to create a(n)____________________ on any field that is used as a search key,in comparison operations in a conditional expression,or when you want to list rows in a specific order.

Correct Answer

verifed

verified

A table can be deleted from the database by using the ____________________ command.

Correct Answer

verifed

verified

What are the wildcard characters that are used with the LIKE command? Provide one or more examples of each.

Correct Answer

verifed

verified

% means any and all following or precedi...

View Answer

The ____________________ clause of the GROUP BY statement operates very much like the WHERE clause in the SELECT statement.

Correct Answer

verifed

verified

Which query will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand and display the results in a column labeled TOTVALUE?


A) SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH*P_PRICE AS TOTVALUE
FROM PRODUCT;
B) SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH=P_PRICE AS TOTVALUE
FROM PRODUCT;
C) SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH/P_PRICE AS TOTVALUE
FROM PRODUCT;
D) SELECT P_DESCRIPT, P_QOH, P_PRICE, P_QOH-P_PRICE AS TOTVALUE
FROM PRODUCT;

E) B) and C)
F) B) and D)

Correct Answer

verifed

verified

Although SQL commands can be grouped together on a single line,complex command sequences are best shown on separate lines,with space between the SQL command and the command's components.

A) True
B) False

Correct Answer

verifed

verified

The ____ command is used to restore the table's contents to their previous values.


A) COMMIT; RESTORE;
B) COMMIT; BACKUP;
C) COMMIT; ROLLBACK;
D) ROLLBACK;

E) B) and D)
F) C) and D)

Correct Answer

verifed

verified

The SQL aggregate function that gives the average for the specific column is ____.


A) COUNT
B) AVG
C) MAX
D) SUM

E) None of the above
F) A) and D)

Correct Answer

verifed

verified

A(n) ____ is an alternate name given to a column or table in any SQL statement.


A) alias
B) data type
C) stored function
D) trigger

E) All of the above
F) A) and C)

Correct Answer

verifed

verified

A(n)____________________ order sequence is a multilevel ordered sequence that can be created easily by listing several attributes,separated by commas,after the ORDER BY clause.

Correct Answer

verifed

verified

The COMMIT command does not permanently save all changes.In order to do that,you must use SAVE.

A) True
B) False

Correct Answer

verifed

verified

____________________ words are words used by SQL to perform specific functions.

Correct Answer

verifed

verified

Which query will output the table contents when the value of V_CODE is not equal to 21344?


A) SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE <> 21344;
B) SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE <= 21344;
C) SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE = 21344;
D) SELECT P_DESCRIPT, P_INDATE, P_PRICE, V_CODE
FROM PRODUCT
WHERE V_CODE => 21344;

E) A) and B)
F) A) and C)

Correct Answer

verifed

verified

An example of a command you would use when making changes to a PRODUCT table is ____.


A) CHANGE PRODUCT
SET P_INDATE = '18-JAN-2004'
WHERE P_CODE = '13-Q2/P2';
B) ROLLBACK PRODUCT
SET P_INDATE = '18-JAN-2004'
WHERE P_CODE = '13-Q2/P2';
C) EDIT PRODUCT
SET P_INDATE = '18-JAN-2004'
WHERE P_CODE = '13-Q2/P2';
D) UPDATE PRODUCT
SET P_INDATE = '18-JAN-2004'
WHERE P_CODE = '13-Q2/P2';

E) B) and C)
F) All of the above

Correct Answer

verifed

verified

In Oracle,the ____ command is used to change the display for a column,for example,to place a $ in front of a numeric value.


A) DISPLAY
B) FORMAT
C) CHAR
D) CONVERT

E) A) and D)
F) B) and D)

Correct Answer

verifed

verified

The conditional LIKE must be used in conjunction with wildcard characters.

A) True
B) False

Correct Answer

verifed

verified

Most SQL implementations yield case-insensitive searches.

A) True
B) False

Correct Answer

verifed

verified

Showing 61 - 80 of 100

Related Exams

Show Answer