Filters
Question type

Study Flashcards

A named set of SQL statements that are considered when a data modification occurs are called:


A) stored procedures.
B) treatments.
C) triggers.
D) trapdoors.

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

Correct Answer

verifed

verified

A procedure is:


A) stored outside the database.
B) given a reserved SQL name.
C) called by name.
D) unable to be modified.

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

Correct Answer

verifed

verified

________ takes a value of TRUE if a subquery returns an intermediate results table which contains one or more rows.


A) In
B) Having
C) Exists
D) Extents

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

Correct Answer

verifed

verified

C

Joining tables or using a subquery may produce the same result.

A) True
B) False

Correct Answer

verifed

verified

A correlated subquery is executed once for each iteration through the outer loop.

A) True
B) False

Correct Answer

verifed

verified

When is it better to use a subquery over using a join?

Correct Answer

verifed

verified

Often, a subquery and join will return t...

View Answer

A join in which rows that do not have matching values in common columns are still included in the result table is called a(n) :


A) natural join.
B) equi-join.
C) outer join.
D) union join.

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

Correct Answer

verifed

verified

What is a self-join and how is it used?

Correct Answer

verifed

verified

A self-join is a join of one table to it...

View Answer

While triggers run automatically, ________ do not and have to be called.


A) trapdoors
B) routines
C) selects
D) updates

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

Correct Answer

verifed

verified

B

The following statement is an example of: CREATE TABLE Customer_t ( CustNmbr number(11,0) , CreditLimit number(6,2) , CustStart date, CustEnd date, PERIOD for Custperiod(CustStart,CustEnd) ) ;


A) a materialized view.
B) an application time period table.
C) a system-versioned table.
D) a dynamic view.

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

Correct Answer

verifed

verified

All of the following are part of the coding structure for triggers EXCEPT:


A) event.
B) condition.
C) selection.
D) action.

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

Correct Answer

verifed

verified

A base table is the underlying table that is used to create views.

A) True
B) False

Correct Answer

verifed

verified

True

An operation to join a table to itself is called a(n) :


A) sufficient-join.
B) inner join.
C) outer join.
D) self-join.

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

Correct Answer

verifed

verified

What are some tips for developing queries?

Correct Answer

verifed

verified

Some suggestions to help the query writi...

View Answer

The outer join syntax does not apply easily to a join condition of more than ________ tables.


A) two
B) three
C) four
D) five

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

Correct Answer

verifed

verified

In order for two queries to be UNION-compatible, they must:


A) both have the same number of lines in their SQL statements.
B) both output compatible data types for each column and return the same number of rows.
C) both return at least one row.
D) both return exactly one row.

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

Correct Answer

verifed

verified

It is better not to have a result set identified before writing GROUP BY and HAVING clauses for a query.

A) True
B) False

Correct Answer

verifed

verified

When a subquery is used in the FROM clause, it is called a denied table.

A) True
B) False

Correct Answer

verifed

verified

Subqueries can only be used in the WHERE clause.

A) True
B) False

Correct Answer

verifed

verified

Specifying the attribute names in the SELECT statement will make it easier to find errors in queries and also correct for problems that may occur in the base system.

A) True
B) False

Correct Answer

verifed

verified

Showing 1 - 20 of 95

Related Exams

Show Answer