Filters
Question type

Study Flashcards

The SQL command that allows a user to permanently save data changes is .


A) INSERT
B) SELECT
C) COMMIT
D) UPDATE

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

The SQL command that allows a user to insert rows into a table is .


A) INSERT
B) SELECT
C) COMMIT
D) UPDATE

Correct Answer

verifed

verified

To make the output more readable, the SQL standard permits the use of aliases for any column in a statement.

Correct Answer

verifed

verified

Some RDBMSs, such as Microsoft Access, automatically make the necessary conversions to eliminate case sensitivity.

Correct Answer

verifed

verified

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


A) DROP TABLE
B) DELETE TABLE
C) MODIFY TABLE
D) ERASE TABLE

Correct Answer

verifed

verified

To remove a row from the PRODUCT table, one must use the command.


A) COMMIT
B) DELETE
C) ERASE
D) KILL

Correct Answer

verifed

verified

The SQL query to output the contents of the EMPLOYEE table sorted by last name, first name, and initial is _____.


A) SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE FROM EMPLOYEE LIST BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
B) SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE FROM EMPLOYEE ORDER BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
C) SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE FROM EMPLOYEE DISPLAY BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;
D) SELECT EMP_LNAME, EMP_FNAME, EMP_INITIAL, EMP_AREACODE, EMP_PHONE FROM EMPLOYEE SEQUENCE BY EMP_LNAME, EMP_FNAME, EMP_INITIAL;

Correct Answer

verifed

verified

Which of the following queries will output the table contents when the value of V_CODE is 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;

Correct Answer

verifed

verified

U.S. state abbreviations are always two characters, so (2) is a logical choice for the data type representing a state column.

Correct Answer

verifed

verified

Which of the following queries will output the table contents when the value of the character field P_CODE is alphabetically less than 1558-QW1?


A) SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE FROM PRODUCT WHERE P_CODE <'1558-QW1';
B) SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE FROM PRODUCT WHERE P_CODE = [1558-QW1];
C) SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE FROM PRODUCT WHERE P_CODE = (1558-QW1) ;
D) SELECT P_CODE, P_DESCRIPT, P_QOH, P_MIN, P_PRICE FROM PRODUCT WHERE P_CODE = {1558-QW1};

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 query to join the P_DESCRIPT and P_PRICE fields from the PRODUCT table and the V_NAME, V_AREACODE, V_PHONE, and V_CONTACT fields from the VENDOR table where the values of V_CODE match is .


A) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <> VENDOR.V_CODE;
B) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
C) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
D) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE FROM PRODUCT, VENDOR WHERE PRODUCT.V_CODE => VENDOR.V_CODE;

Correct Answer

verifed

verified

UPDATE tablename ***** [WHERE conditionlist]; The command replaces the ***** in the syntax of the UPDATE command, shown above.


A) SET columnname = expression
B) columnname = expression
C) expression = columnname
D) LET columnname = expression

Correct Answer

verifed

verified

String comparisons are made from left to right.

Correct Answer

verifed

verified

Oracle users can use the Access QBE (query by example) query generator.

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.

Correct Answer

verifed

verified

If you have not yet used the COMMIT command to store the changes permanently in the database, you can restore the database to its previous condition with the ROLLBACK command.

Correct Answer

verifed

verified

Mathematical operators cannot be used to place restrictions on character-based attributes.

Correct Answer

verifed

verified

The COUNT function is designed to tally the number of non-null "values" of an attribute, and is often used in conjunction with the DISTINCT clause.

Correct Answer

verifed

verified

Showing 41 - 60 of 111

Related Exams

Show Answer