Filters
Question type

Study Flashcards

The maximum number of columns that can be used to sort the results of a query is 52.

Correct Answer

verifed

verified

Which of the following search conditions can be used to identify records that have data stored in a column named ColB?


A) ColB IS NOT NULL
B) ColB ^= NULL
C) ColB != NULL
D) all of the above

Correct Answer

verifed

verified

Retrieving only specific rows from a table is a process known as selection.

Correct Answer

verifed

verified

The process of retrieving only certain rows based upon a specified condition is known as ____.


A) selection
B) projection
C) retrieval
D) derivation

Correct Answer

verifed

verified

When the WHERE clause contains multiple types of operators, which of the following is resolved first?


A) arithmetic operations
B) comparison operators
C) logical operators
D) union operators

Correct Answer

verifed

verified

When sorting the results in ascending order, which of the following values will be presented last in the output?


A) character
B) numeric
C) NULL
D) date

Correct Answer

verifed

verified

When sorting data, the values will be sorted in  ascending ‾\underline { \text { ascending } } order by default. _________________________

Correct Answer

verifed

verified

The  LIKE ‾\underline { \text { LIKE } } operator is used to indicate a range of values. _________________________

Correct Answer

verifed

verified

When two conditions are joined by the OR‾\underline{OR} keyword, both conditions must be True for a record to be included in the results. _________________________

Correct Answer

verifed

verified

Contents of the ORDERS table Contents of the ORDERS table    -Based upon the contents of the ORDERS table in the accompanying figure, which of the following SQL statements will list all orders placed by customer # 1020 that have not yet been shipped? A)  SELECT * FROM orders WHERE customer# = 1020 OR shipdate = NULL; B)  SELECT * FROM orders WHERE customer# = 1020 AND shipdate IS NULL; C)  SELECT * FROM orders WHERE customer# = 1020 OR shipdate IS NULL; D)  SELECT * FROM orders WHERE customer# = 1020 AND shipdate = NULL; -Based upon the contents of the ORDERS table in the accompanying figure, which of the following SQL statements will list all orders placed by customer # 1020 that have not yet been shipped?


A) SELECT * FROM orders WHERE customer# = 1020 OR shipdate = NULL;
B) SELECT * FROM orders WHERE customer# = 1020 AND shipdate IS NULL;
C) SELECT * FROM orders WHERE customer# = 1020 OR shipdate IS NULL;
D) SELECT * FROM orders WHERE customer# = 1020 AND shipdate = NULL;

Correct Answer

verifed

verified

The first column listed in an ORDER BY clause is considered the primary sort.

Correct Answer

verifed

verified

The  BETWEEN ‾\underline {\text { BETWEEN } } operator is used to determine the rows that match a value in a given list. _________________________

Correct Answer

verifed

verified

Which of the following operators is used when the criteria is based upon a search pattern?


A) AND
B) LIKE
C) IS NULL
D) BETWEEN...AND

Correct Answer

verifed

verified

Contents of BOOKS table Contents of BOOKS table    -Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will retrieve all books stored in the BOOKS table with Pubid 1 or 2 or that have a retail price of at least $42.00? A)  SELECT * FROM books WHERE pubid = 1 OR pubid = 2 OR retail >= 42; B)  SELECT * FROM books WHERE pubid IN (1, 2)  OR retail => 42; C)  SELECT * FROM books WHERE pubid = 1 AND pubid=2 OR retail >=42; D)  both a and b -Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will retrieve all books stored in the BOOKS table with Pubid 1 or 2 or that have a retail price of at least $42.00?


A) SELECT * FROM books
WHERE pubid = 1 OR pubid = 2 OR retail >= 42;
B) SELECT * FROM books
WHERE pubid IN (1, 2) OR retail => 42;
C) SELECT * FROM books
WHERE pubid = 1 AND pubid=2 OR retail >=42;
D) both a and b

Correct Answer

verifed

verified

When sorting the results in descending order, which of the following values will be presented first in the output?


A) numeric
B) character
C) NULL
D) date

Correct Answer

verifed

verified

Contents of BOOKS table Contents of BOOKS table    -Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will display all books stored in the BOOKS table that generate more than 60 percent profit? A)  SELECT * FROM books WHERE profit > .6; B)  SELECT * FROM books WHERE (retail-cost) /cost > .60; C)  SELECT * FROM books WHERE (retail-cost) /cost > 60%; D)  SELECT * FROM books WHERE (retail-cost) /cost > '60'; -Based upon the contents of the BOOKS table in the accompanying figure, which of the following queries will display all books stored in the BOOKS table that generate more than 60 percent profit?


A) SELECT * FROM books
WHERE profit > .6;
B) SELECT * FROM books
WHERE (retail-cost) /cost > .60;
C) SELECT * FROM books
WHERE (retail-cost) /cost > 60%;
D) SELECT * FROM books
WHERE (retail-cost) /cost > '60';

Correct Answer

verifed

verified

A NULL value is the same as a blank space.

Correct Answer

verifed

verified

When two conditions are joined by the AND logical operator, both of the conditions must be evaluated as FALSE to be included in the query results.

Correct Answer

verifed

verified

The ____________________ comparison operator is used when the search condition includes a search pattern.

Correct Answer

verifed

verified

The ____________________ keywords can be included in an ORDER BY clause to indicate that NULL values should be listed last in the results.

Correct Answer

verifed

verified

Showing 41 - 60 of 132

Related Exams

Show Answer