Filters
Question type

Study Flashcards

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

A) True
B) False

Correct Answer

verifed

verified

The syntax for creating an index is .


A) CREATE [NOT NULL] INDEX indexname FROM viewname(column1 [, column2]) ;
B) CREATE [UNIQUE] INDEX indexname ON tablename( column1 [, column2]) ;
C) CREATE [UNIQUE] INDEX indexname FROM tablename(column1 [, column2]) ;
D) CREATE [DEFAULT] INDEX indexname ON viewname(column1 [, column2]) ;

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

Correct Answer

verifed

verified

The SQL data manipulation command HAVING:


A) restricts the selection of rows based on a conditional expression.
B) restricts the selection of grouped rows based on a condition.
C) modifies an attribute's values in one or more table's rows.
D) groups the selected rows based on one or more attributes.

E) None of the above
F) All of the above

Correct Answer

verifed

verified

Entity integrity is enforced automatically when the primary key is specified in the CREATE TABLE command sequence.

A) True
B) False

Correct Answer

verifed

verified

The SQL aggregate function that gives the arithmetic mean for a specific column is .


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

E) All of the above
F) None of the above

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

The LIKE special operator is used in con...

View Answer

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) A) and D)
F) A) and C)

Correct Answer

verifed

verified

Which of the following queries will use the given columns and column aliases from the PRODUCT table to determine the total value of inventory held on hand?


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

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

Correct Answer

verifed

verified

What is a subquery? When is it used? Does the RDBMS deal with subqueries any differently from normal queries?

Correct Answer

verifed

verified

A subquery, also known as a nested query...

View Answer

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) B) and D)
F) A) and B)

Correct Answer

verifed

verified

B

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


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

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

Correct Answer

verifed

verified

Which of the following queries will list all the rows in which the inventory stock dates occur on or after January 20, 2010?


A) SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDATE >= '20-JAN-2010';
B) SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDATE >= $20-JAN-2010$;
C) SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDATE <= '20-JAN-2010';
D) SELECT P_DESCRIPT, P_QOH, P_MIN, P_PRICE, P_INDATE FROM PRODUCT WHERE P_INDATE >= {20-JAN-2010};

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

Correct Answer

verifed

verified

In a 1:M relationship, a user must always create the table for the side first.

Correct Answer

verifed

verified

The ANSI SQL standards are also accepted by the ISO.

A) True
B) False

Correct Answer

verifed

verified

True

A database language enables the user to create database and table structures to perform basic data management chores.

A) True
B) False

Correct Answer

verifed

verified

Some RDBMSs, such as Oracle, automatically data changes when issuing data definition commands.


A) COMMIT
B) ROLLBACK
C) UNSAVE
D) UPDATE

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

Correct Answer

verifed

verified

is the process the DBMS uses to verify that only registered users access the database.

Correct Answer

verifed

verified

Authentication

The ANSI prescribes a standard SQL-the current fully approved version is known as SQL-07.

A) True
B) False

Correct Answer

verifed

verified

The special operator is used to check whether an attribute value is null.


A) BETWEEN
B) IS NULL
C) LIKE
D) NOT NULL

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

Correct Answer

verifed

verified

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

Correct Answer

verifed

verified

Showing 1 - 20 of 111

Related Exams

Show Answer