Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

The special operator used to check whether an attribute value is within a range of values is ____.


A) BETWEEN
B) NULL
C) LIKE
D) IN

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

Correct Answer

verifed

verified

In the SQL environment, the word ____________________ covers both questions and actions.

Correct Answer

verifed

verified

With the exception of the database ____________________ process, most RDBMS vendors use SQL that deviates little from the ANSI standard SQL.

Correct Answer

verifed

verified

A(n) ____ is a query that is embedded (or nested) inside another query.


A) alias
B) operator
C) subquery
D) view

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

Correct Answer

verifed

verified

The SQL command that modifies an attribute's values in one or more table's rows is ____.


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

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

Correct Answer

verifed

verified

The query used to list the P_CODE, P_DESCRIPT, P_INDATE, and P_PRICE fields from the PRODUCT table in ascending order by P_PRICE is ____.


A) SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
FROM PRODUCT
SEQUENCE BY P_PRICE;
B) SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
FROM PRODUCT
LIST BY P_PRICE;
C) SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
FROM PRODUCT
ORDER BY P_PRICE;
D) SELECT P_CODE, P_DESCRIPT, P_INDATE, P_PRICE
FROM PRODUCT
ASCENDING BY P_PRICE;

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

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) None of the above
F) A) 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

String comparisons are made from left to right.

A) True
B) False

Correct Answer

verifed

verified

The ____________________ command, coupled with appropriate search conditions, is an incredibly powerful tool that enables you to transform data into information.

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.

A) True
B) False

Correct Answer

verifed

verified

The special operator used to check whether a subquery returns any rows is ____.


A) BETWEEN
B) EXISTS
C) LIKE
D) IN

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

Correct Answer

verifed

verified

To join tables, simply enumerate the tables in the FROM clause of the SELECT statement. The DBMS will create a Cartesian product of every table in the FROM clause. To get the correct results, you need to select the rows in which the common attribute values do not match.

A) True
B) False

Correct Answer

verifed

verified

Date procedures are often more software-specific than other SQL procedures.

A) True
B) False

Correct Answer

verifed

verified

To list all the contents of the PRODUCT table, you would use ____.


A) LIST * FROM PRODUCT;
B) SELECT * FROM PRODUCT;
C) DISPLAY * FROM PRODUCT;
D) SELECT ALL FROM PRODUCT;

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

Correct Answer

verifed

verified

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

A) True
B) False

Correct Answer

verifed

verified

The SQL aggregate function that gives the number of rows containing non-null values for the given column is ____.


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

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

Correct Answer

verifed

verified

Since computers identify all characters by their numeric codes, mathematical operators cannot be used to place restrictions on character-based attributes.

A) True
B) False

Correct Answer

verifed

verified

The ANSI SQL standards are also accepted by the ISO.

A) True
B) False

Correct Answer

verifed

verified

Showing 81 - 100 of 100

Related Exams

Show Answer