Filters
Question type

Study Flashcards

All SQL commands must be issued on a single line.

A) True
B) False

Correct Answer

verifed

verified

Using the ____________________ command, SQL indexes can be created on the basis of any selected attribute.

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

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

If you add a new column to a table that already has rows, the existing rows will default to a value of ____________________ for the new column.

Correct Answer

verifed

verified

If your integer values are relatively small, use ____________________ instead of INT.

Correct Answer

verifed

verified

What command is used to save changes to the database? What is the syntax for this command?

Correct Answer

verifed

verified

Any changes made to the table contents a...

View Answer

Most SQL implementations yield case-insensitive searches.

A) True
B) False

Correct Answer

verifed

verified

You cannot insert a row containing a null attribute value using SQL.

A) True
B) False

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

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

Only numeric data types can be added and subtracted in SQL.

A) True
B) False

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

The SQL aggregate function that gives the total of all values for a selected attribute in a given column is ____.


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

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

Correct Answer

verifed

verified

Which query 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}

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

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 and the output is ordered by the price 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;
ORDER BY P_PRICE;
B) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE => VENDOR.V_CODE;
ORDER BY P_PRICE;
C) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE <= VENDOR.V_CODE;
ORDER BY P_PRICE;
D) SELECT P_DESCRIPT, P_PRICE, V_NAME, V_CONTACT, V_AREACODE, V_PHONE
FROM PRODUCT, VENDOR
WHERE PRODUCT.V_CODE = VENDOR.V_CODE;
ORDER BY P_PRICE;

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

Correct Answer

verifed

verified

ANSI-standard SQL allows the use of special operators in conjunction with the WHERE clause.

A) True
B) False

Correct Answer

verifed

verified

Data type selection is usually dictated by the nature of the data and by the intended use.

A) True
B) False

Correct Answer

verifed

verified

The basic SQL vocabulary has fewer than ____________________ words.

Correct Answer

verifed

verified

100
one hu...

View Answer

The CHECK constraint is used to define a condition for the values that the attribute domain cannot have.

A) True
B) False

Correct Answer

verifed

verified

Showing 61 - 80 of 100

Related Exams

Show Answer